Class ResourceExistsException

All Implemented Interfaces:
Serializable

public class ResourceExistsException extends PerunException
This exception is thrown when the resource could not be created/updated because there is already a resource with the same name
Author:
Oliver Mrázik
See Also:
  • Constructor Details

    • ResourceExistsException

      public ResourceExistsException(String message)
      Simple constructor with a message
      Parameters:
      message - message with details about the cause
    • ResourceExistsException

      public ResourceExistsException(String message, Throwable cause)
      Constructor with a message and Throwable object
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
    • ResourceExistsException

      public ResourceExistsException(Throwable cause)
      Constructor with a Throwable object
      Parameters:
      cause - Throwable that caused throwing of this exception
    • ResourceExistsException

      public ResourceExistsException(Resource resource)
      Constructor with the resource
      Parameters:
      resource - resource that already exists
  • Method Details

    • getResource

      public Resource getResource()
      Getter for the resource
      Returns:
      resource that already exists