Package org.chenile.base.exception
package org.chenile.base.exception
Contains all exception classes for well-known HTTP status codes.Services must throw
these. In case a subclass does not exist for an HTTP status code, then an ErrorNumException
can be thrown with the appropriate HTTP status code.
-
ClassDescription
ErrorNumException
with HTTP status code of 400.ErrorNumException
with HTTP status code of 500 meant for configuration errors.An exception that has a HTTP status code and a custom subErrorCode (which can be a specific error) These two errors make the exception very specific It can contain further errors that are supported by theResponseMessage
ErrorNumException
with HTTP status code of 500 for runtime errors.