Class HostExistsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.EntityExistsException
cz.metacentrum.perun.core.api.exceptions.HostExistsException
- All Implemented Interfaces:
Serializable
This exception is to be thrown if host already exists in cluster.
- Author:
- Slavek Licehammer
- See Also:
-
Constructor Summary
ConstructorDescriptionHostExistsException
(Host host) Constructor with the hostHostExistsException
(String message) Simple constructor with a messageHostExistsException
(String message, Throwable cause) Constructor with a message and Throwable objectHostExistsException
(Throwable cause) Constructor with a Throwable object -
Method Summary
Methods inherited from class cz.metacentrum.perun.core.api.exceptions.PerunException
getErrorId, getFriendlyMessageTemplate, getMessage, getName, setErrorId
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
HostExistsException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
HostExistsException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
HostExistsException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
HostExistsException
Constructor with the host- Parameters:
host
- the host that already exists
-
-
Method Details
-
getHost
Getter for the host- Returns:
- the host that already exists
-