Skip to content

Function: createError()

ts
function createError<T>(message: string, code: string): CreatedException<T>;

Type Parameters

Type ParameterDefault type
T extends any[]never

Parameters

ParameterType
messagestring
codestring

Returns

CreatedException<T>