Skip to content

CastError

@tsed/json-mapper

Usage ​

typescript
import { CastError } from "@tsed/json-mapper";

See /packages/specs/json-mapper/src/components/PrimitiveMapper.ts.

Overview ​

ts
class CastError extends Error {
    name: string;
    constructor(message: string);
}

Description ​

Error thrown when a primitive conversion cannot be performed safely.

name ​

ts
name: string;

Released under the MIT License.