Class PetTypeNotFoundException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
de.Keyle.MyPet.api.exceptions.PetTypeNotFoundException
All Implemented Interfaces:
Serializable

public class PetTypeNotFoundException extends RuntimeException
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 Details

    • PetTypeNotFoundException

      public PetTypeNotFoundException(String type)
      Reports a pet type name that is not registered.
      Parameters:
      type - the unrecognized type name that triggered the lookup failure