Forest Admin - API reference
    Preparing search index...

    Class HookBeforeDeleteContext<S, N>

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _filter: Filter
    realCollection: Collection

    Accessors

    • get caller(): Readonly<Caller>

      Returns Readonly<Caller>

    • get collection(): RelaxedCollection<S, N>

      Returns RelaxedCollection<S, N>

    • get dataSource(): RelaxedDataSource<S>

      Returns RelaxedDataSource<S>

    • get filter(): Readonly<TFilter<S, N>>

      Returns Readonly<TFilter<S, N>>

    Methods

    • Stop hooks execution and send error to the UI

      Parameters

      • message: string

        the error message

      Returns never

      .throwError('My error message');
      
    • Stop hooks execution and send Forbidden error to the UI

      Parameters

      • message: string

        the forbidden error message

      Returns never

      .throwForbiddenError('My forbidden error message');
      
    • Stop hooks execution and send Validation error to the UI

      Parameters

      • message: string

        the validation error message

      Returns never

      .throwValidationError('My validation error message');