tryError Documentation

Function: internError()
Function

```ts function internError( type, message, source ): { message: string; source: string; type: string; }; ``` Defined in: [intern.ts:171](https://github.com/oconnorjohnson/try-error/blob/e3ae0308069a4fba073f4543d527ad76373db795/src/intern.ts#L171) Intern common error properties

tryError API Documentation v0.0.1-alpha.1


tryError API Documentation / internError

Function: internError()

function internError(
  type,
  message,
  source
): {
  message: string;
  source: string;
  type: string;
};

Defined in: intern.ts:171

Intern common error properties

Parameters

type

string

message

string

source

string

Returns

{
  message: string;
  source: string;
  type: string;
}

message

message: string;

source

source: string;

type

type: string;