HTTP-related exceptions.
When used in conjunction with the org.euandreh.http.interceptors/catch interceptor, these exceptions can be used to stop the control flow of the handling code and return a proper error message and status code to the client.
(exception/forbidden! {...}) throws an ExceptionInfo with metadata attached to it that org.euandreh.http.interceptors/catch knows how to find, and return a 403 status code with the Forbidden message.
HTTP-related exceptions.
When used in conjunction with the `org.euandreh.http.interceptors/catch` interceptor, these exceptions can be used to stop the control flow of the handling code and return a proper error message and status code to the client.
`(exception/forbidden! {...})` throws an ExceptionInfo with metadata attached to it that `org.euandreh.http.interceptors/catch` knows how to find, and return a 403 status code with the `Forbidden` message.(conflict error-map)Build and return the exception, but doesn't throw it.
Build and return the exception, but doesn't throw it.
(conflict! error-map)Build and throw the exception.
Build and throw the exception.
(forbidden error-map)Build and return the exception, but doesn't throw it.
Build and return the exception, but doesn't throw it.
(forbidden! error-map)Build and throw the exception.
Build and throw the exception.
(invalid-input error-map)Build and return the exception, but doesn't throw it.
Build and return the exception, but doesn't throw it.
(invalid-input! error-map)Build and throw the exception.
Build and throw the exception.
(not-found error-map)Build and return the exception, but doesn't throw it.
Build and return the exception, but doesn't throw it.
(not-found! error-map)Build and throw the exception.
Build and throw the exception.
(precondition-failed error-map)Build and return the exception, but doesn't throw it.
Build and return the exception, but doesn't throw it.
(precondition-failed! error-map)Build and throw the exception.
Build and throw the exception.
(server-error error-map)Build and return the exception, but doesn't throw it.
Build and return the exception, but doesn't throw it.
(server-error! error-map)Build and throw the exception.
Build and throw the exception.
(too-many-requests error-map)Build and return the exception, but doesn't throw it.
Build and return the exception, but doesn't throw it.
(too-many-requests! error-map)Build and throw the exception.
Build and throw the exception.
(unauthorized error-map)Build and return the exception, but doesn't throw it.
Build and return the exception, but doesn't throw it.
(unauthorized! error-map)Build and throw the exception.
Build and throw the exception.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |