Class NotFoundException

  • All Implemented Interfaces:
    java.io.Serializable

    public class NotFoundException
    extends AbstractCisClientException
    A generic exception if a resource wasn't found (will be translated to a 404).
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      NotFoundException​(java.lang.String resourceId)
      Instantiates a new cis service exception.
      NotFoundException​(java.lang.String shortDescription, java.lang.String reasonCode)
      New exception based on error code and reason code
      NotFoundException​(java.lang.String id, java.lang.String sourceSimpleClassName, java.lang.String requestId, java.lang.String reasonCode)
      New exception based on properties from an external exception or message
      NotFoundException​(java.lang.String resourceId, java.lang.Throwable cause)
      Instantiates a new cis service exception.
      NotFoundException​(java.util.List<ServiceExceptionDetail> serviceExceptionDetails)  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • NotFoundException

        public NotFoundException​(java.util.List<ServiceExceptionDetail> serviceExceptionDetails)
      • NotFoundException

        public NotFoundException​(java.lang.String resourceId)
        Instantiates a new cis service exception.
        Parameters:
        resourceId - The id of the resource which couldn't be found.
      • NotFoundException

        public NotFoundException​(java.lang.String resourceId,
                                 java.lang.Throwable cause)
        Instantiates a new cis service exception.
        Parameters:
        resourceId - The id of the resource which couldn't be found.
        cause - The root cause
      • NotFoundException

        public NotFoundException​(java.lang.String shortDescription,
                                 java.lang.String reasonCode)
        New exception based on error code and reason code
        Parameters:
        shortDescription -
        reasonCode -
      • NotFoundException

        public NotFoundException​(java.lang.String id,
                                 java.lang.String sourceSimpleClassName,
                                 java.lang.String requestId,
                                 java.lang.String reasonCode)
        New exception based on properties from an external exception or message
        Parameters:
        id - short description
        sourceSimpleClassName - name of the original message or exception
        requestId - request ID associated with the error
        reasonCode - reason code associated with the error