server library
This file is used by Shorebird codegen to generate the server code.
Classes
- Server
- Used by Shorebird codegen handle centralized server logic.
Functions
-
exceptionHandler(
) → Middleware
Exceptions / Errors
- ShorebirdException
- An exception that can be thrown by the user's code and will be caught by the exception handler middleware. Subclass this to create your own exceptions. All other exceptions will be caught and a generic 500 will be returned.