All Implemented Interfaces:
Serializable

public class NotFoundException extends DomainException
Exception thrown when a requested resource cannot be found in the system.

Raised by output ports and adapters when a lookup operation returns no result, for example when an aggregate identified by a given public identifier does not exist in the data store.

See Also:
  • Constructor Details

    • NotFoundException

      public NotFoundException(String message)
      Constructs a NotFoundException with the given detail message.
      Parameters:
      message - the detail message describing which resource was not found
    • NotFoundException

      public NotFoundException(String message, Throwable cause)
      Constructs a NotFoundException with the given detail message and cause.
      Parameters:
      message - the detail message describing which resource was not found
      cause - the underlying cause