Class ElementNotFoundException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ElementWithIdNotFoundException

public class ElementNotFoundException extends BaseApplicationException
Element not found on search.
Author:
Fernando Romulo da Silva
See Also:
  • Constructor Details

    • ElementNotFoundException

      public ElementNotFoundException(Class<T> cls, String msg)
      Constructs a new ElementNotFoundException exception and create detail message regard of parameters.
      For instance for Person object and msg equals to "id '10' and name 'Fernando'":
      "Person with id '10' and name 'Fernando' not found"
      Type Parameters:
      T - The class type
      Parameters:
      cls - Class element
      msg - The specific message
    • ElementNotFoundException

      protected ElementNotFoundException(String msg, Object... params)
      Constructs a new BaseApplicationException exception with the specified detail message.
      Parameters:
      msg - The detail message
      params - The parameters used on message