Module io.github.mmm.base
Package io.github.mmm.base.exception
package io.github.mmm.base.exception
Contains
ApplicationException and derived exception classes for common cases.-
ClassDescriptionExtends
RuntimeExceptionwith the following features: aUUIDunique per exception instance automatically generated once per exceptionchain. anerror codethat should be unique per exception type. distinction betweentechnicalexceptions and exceptionsintended for end-users. NOTE:
Exceptions should only occur in unexpected or undesired situations.AnDuplicateObjectExceptionis thrown if an object was rejected because it is a duplicate.Interface used as fallback tohandle an errorthat can not be handled in a specific way by generic components.Class givingglobal accessto theGlobalExceptionHandlerimplementation.Implementation ofGlobalExceptionHandlerusing SLF4JLogger.Implementation ofGlobalExceptionHandlerthat simply performs aThrowable.printStackTrace().AnObjectMismatchExceptionis thrown if an object or value does not match an expected result.AnObjectNotFoundExceptionis thrown if an object was requested but does not exist or could not be found.AReadOnlyExceptionis thrown if the modification of something failed because it is read-only.