Liking cljdoc? Tell your friends :D

org.euandreh.http.exception

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.
raw docstring

conflictclj

(conflict error-map)

Build and return the exception, but doesn't throw it.

Build and return the exception, but doesn't throw it.
raw docstring

conflict!clj

(conflict! error-map)

Build and throw the exception.

Build and throw the exception.
raw docstring

forbiddenclj

(forbidden error-map)

Build and return the exception, but doesn't throw it.

Build and return the exception, but doesn't throw it.
raw docstring

forbidden!clj

(forbidden! error-map)

Build and throw the exception.

Build and throw the exception.
raw docstring

invalid-inputclj

(invalid-input error-map)

Build and return the exception, but doesn't throw it.

Build and return the exception, but doesn't throw it.
raw docstring

invalid-input!clj

(invalid-input! error-map)

Build and throw the exception.

Build and throw the exception.
raw docstring

not-foundclj

(not-found error-map)

Build and return the exception, but doesn't throw it.

Build and return the exception, but doesn't throw it.
raw docstring

not-found!clj

(not-found! error-map)

Build and throw the exception.

Build and throw the exception.
raw docstring

precondition-failedclj

(precondition-failed error-map)

Build and return the exception, but doesn't throw it.

Build and return the exception, but doesn't throw it.
raw docstring

precondition-failed!clj

(precondition-failed! error-map)

Build and throw the exception.

Build and throw the exception.
raw docstring

server-errorclj

(server-error error-map)

Build and return the exception, but doesn't throw it.

Build and return the exception, but doesn't throw it.
raw docstring

server-error!clj

(server-error! error-map)

Build and throw the exception.

Build and throw the exception.
raw docstring

too-many-requestsclj

(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.
raw docstring

too-many-requests!clj

(too-many-requests! error-map)

Build and throw the exception.

Build and throw the exception.
raw docstring

unauthorizedclj

(unauthorized error-map)

Build and return the exception, but doesn't throw it.

Build and return the exception, but doesn't throw it.
raw docstring

unauthorized!clj

(unauthorized! error-map)

Build and throw the exception.

Build and throw the exception.
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close