java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.mmm.base.exception.ApplicationException
io.github.mmm.orm.statement.NonUniqueResultException
- All Implemented Interfaces:
io.github.mmm.base.i18n.Localizable,io.github.mmm.base.i18n.LocalizableObject,Serializable
public final class NonUniqueResultException
extends io.github.mmm.base.exception.ApplicationException
ApplicationException thrown if a single result was expected but multiple results have been received.- Since:
- 1.0.0
- See Also:
-
Field Summary
Fields inherited from interface io.github.mmm.base.i18n.Localizable
BUNDLE_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionNonUniqueResultException(int count) The constructor.NonUniqueResultException(int count, String query) The constructor. -
Method Summary
Methods inherited from class io.github.mmm.base.exception.ApplicationException
createUuid, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getMessage, getNlsMessage, getNlsMessage, getUuid, isForUser, isTechnical, printStackTrace, toString, toString, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTraceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.base.i18n.Localizable
getArgument, toLocalizable
-
Constructor Details
-
NonUniqueResultException
public NonUniqueResultException(int count) The constructor.- Parameters:
count- the actual number of results received.
-
NonUniqueResultException
The constructor.- Parameters:
count- the actual number of results received.query- the query that produced multiple results or the description of it.
-
-
Method Details
-
getCode
- Overrides:
getCodein classio.github.mmm.base.exception.ApplicationException
-