Class: DocloopError

docloop DocloopError

Custom error. Since most http requests will be handled by the docloop core or one of the base classes, it is difficult for adapters to set the status code themselves. This error class lets them make a proposal for the error code, for when the error at hand eventually causes a request to fail.

new DocloopError(message, status)

Name Type Description
message String

Error description

status Number

Proposed HTML status code in case this error causes a request to fail.