Package org.ametys.plugins.repository
Class AmetysObjectExistsException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.ametys.plugins.repository.AmetysRepositoryException
-
- org.ametys.plugins.repository.AmetysObjectExistsException
-
- All Implemented Interfaces:
Serializable
public class AmetysObjectExistsException extends AmetysRepositoryException
Exception thrown when an attempt to created aAmetysObject
failed because thisAmetysObject
already exist.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AmetysObjectExistsException(String message)
Constructs a new unknown data exception with the specified detail message.AmetysObjectExistsException(String message, Throwable cause)
Constructs a new unknown data exception with the specified detail message and cause.AmetysObjectExistsException(String message, AmetysObject ao)
Constructs a new unknown data exception with the specified detail message.AmetysObjectExistsException(Throwable cause)
Constructs a new unknown data exception with the specified cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AmetysObject
getAmetysObject()
Get the Ametys object responsible for this exception-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
AmetysObjectExistsException
public AmetysObjectExistsException(String message)
Constructs a new unknown data exception with the specified detail message.- Parameters:
message
- The detail message.
-
AmetysObjectExistsException
public AmetysObjectExistsException(String message, AmetysObject ao)
Constructs a new unknown data exception with the specified detail message.- Parameters:
message
- The detail message.ao
- The Ametys object
-
AmetysObjectExistsException
public AmetysObjectExistsException(String message, Throwable cause)
Constructs a new unknown data exception with the specified detail message and cause.- Parameters:
message
- The detail message.cause
- The cause.
-
AmetysObjectExistsException
public AmetysObjectExistsException(Throwable cause)
Constructs a new unknown data exception with the specified cause.- Parameters:
cause
- The cause.
-
-
Method Detail
-
getAmetysObject
public AmetysObject getAmetysObject()
Get the Ametys object responsible for this exception- Returns:
- The Ametys object
-
-