Type Parameters

Hierarchy

Constructors

Properties

action: "update" | "create"
filter?: TFilter<S, N>
realCollection: Collection
record: RecursivePartial<TSimpleRow<S, N>>

Accessors

  • get caller(): Readonly<Caller>
  • Returns Readonly<Caller>

  • get collection(): default<S, N>
  • Returns default<S, N>

  • get dataSource(): default<S>
  • Returns default<S>

Methods

  • Stop hooks execution and send error to the UI

    Example

    .throwError('My error message');
    

    Parameters

    • message: string

      the error message

    Returns never

  • Stop hooks execution and send Forbidden error to the UI

    Example

    .throwForbiddenError('My forbidden error message');
    

    Parameters

    • message: string

      the forbidden error message

    Returns never

  • Stop hooks execution and send Validation error to the UI

    Example

    .throwValidationError('My validation error message');
    

    Parameters

    • message: string

      the validation error message

    Returns never