Package de.Keyle.MyPet.api.exceptions
Class PetTypeNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.Keyle.MyPet.api.exceptions.PetTypeNotFoundException
- All Implemented Interfaces:
Serializable
Thrown by
PetType.byName(String) and
PetType.byEntityTypeName(String) when
the requested name does not match any registered pet type. Callers that
need a null-safe lookup should use
PetType.byNameOrNull(String) instead.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionReports a pet type name that is not registered. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
PetTypeNotFoundException
Reports a pet type name that is not registered.- Parameters:
type- the unrecognized type name that triggered the lookup failure
-