Interface ApplicationError<C, D>

interface ApplicationError<C, D> {
    code: C;
    data: D;
    toJson(): Literal<D>;
}

Type Parameters

  • C extends number
  • D

Hierarchy

  • Error
    • ApplicationError

Properties

Methods

Properties

code: C
data: D

Methods