Package com.github.mizool.core.exception
package com.github.mizool.core.exception
-
ClassDescriptionThrown when the entity is syntactically correct (e.g. all non-null properties are set), but could not be processed for semantic reasons (e.g. invalid references to other database entities).Thrown when an explicit null check fails for a method argument.
Note: the exception is named "Argument..." instead of "Parameter..." for consistency withIllegalArgumentException
, which it extends.Thrown when the request is malformed on the syntax level, e.g. mandatory properties or parameters are not set.Represents problems that arise purely from inconsistencies in the source code, as opposed to problems that are caused by user or environment data.
For example, this exception may be used to wrap an "impossible"UnsupportedEncodingException
for the encoding "UTF-8" (which is guaranteed to be supported by the Java specs).Represents problems with the system or application configuration that arise from incomplete or wrong installation.Thrown when the entity cannot be saved due to a conflict with the corresponding object in the database, e.g.Thrown when the persistent application data is in an invalid and/or inconsistent state and cannot be processed.
If the error lies within the configuration instead of the application data, useConfigurationException
instead.Thrown when an entity contains an invalid reference to another entity.Thrown when an attempt is made to set a value for a field which is automatically generated or maintained, such as the identifier or timestamps.Thrown when an invalid reply was received from a backend system.Thrown when the primary key of the entity is invalid.Thrown when trying to manipulate a locked entityThrown to indicate that a method was not yet implemented by the developer.Thrown when one or more objects are not found.Thrown when an attempt is made to change the value of a field that is considered read-only for the current operation.Thrown when there is an error during aStream
reduction operation.Wraps anInterruptedException
.
Remember to callThread.currentThread().interrupt();
before throwing this exception.
See this article for details.