Class EthosResourceNotFoundException

  • All Implemented Interfaces:
    Serializable

    public class EthosResourceNotFoundException
    extends RuntimeException
    Thrown when the given resource is not found in the available resources response.
    See Also:
    Serialized Form
    • Constructor Detail

      • EthosResourceNotFoundException

        public EthosResourceNotFoundException​(String message)
        Constructor taking the error message.
        Parameters:
        message - The error message for this exception.
      • EthosResourceNotFoundException

        public EthosResourceNotFoundException​(String message,
                                              String resourceName)
        Constructor taking the error message and the name of the resource not found in the available resources response.
        Parameters:
        message - The error message for this exception.
        resourceName - The name of the resource not found.
    • Method Detail

      • getResourceName

        public String getResourceName()
        Gets the name of the resource that was not found.
        Returns:
        The name of the resource not found.