ShiftWise API Docs
    Preparing search index...

    Function Internal

    • Creates a 500 Internal Server Error. Use for unexpected errors that shouldn't normally occur. Prefer throwing the error directly and letting the global handler catch it.

      Parameters

      • msg: string = "Internal server error"

        Error message (default: "Internal server error")

      Returns AppError

      AppError with status 500 and code INTERNAL_ERROR