Skip to main content
Version: Current

Error Types

  • CasualOSError

    Defines a class that represents a generic CasualOS error.

    Members

    • cause? unknown

    • errorCode string

      The error code that occurred.

    • errorMessage string

      The error message that occurred.

    • message string

    • name string

    • stack? string

    • prepareStackTrace? (err: Error,stackTraces: CallSite[]) => any

    • stackTraceLimit number

    • constructor(error: (string | GenericError)): CasualOSError

      The first parameter is a (string | GenericError) and

    • static captureStackTrace(targetObject: object, constructorOpt?: Function): void

      Create .stack property on a target object

      The first parameter is a object and

      The second parameter is optional and is a Function and

  • GenericError

    Defines an interface that represents a generic error.

    Members

    • errorCode string

      The error code.

    • errorMessage string

      The error message.