Represents a generic error that occurs in the LaraFlow library. This error should be thrown when a logic error occurs that should not be caught.

It only serves to inform the developer that an invariant has been broken, thus highlighting a bug in the code.

Hierarchy

  • Error
    • laraFlowError

Constructors

Properties

cause?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void