Package javax.jcr.version
Class LabelExistsVersionException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.jcr.RepositoryException
-
- javax.jcr.version.VersionException
-
- javax.jcr.version.LabelExistsVersionException
-
- All Implemented Interfaces:
java.io.Serializable
public class LabelExistsVersionException extends VersionException
Exception thrown byVersionHistory.addVersionLabel
ifmoveLabel
is set tofalse
and an attempt is made to add a label that already exists in theVersionHistory
.- Since:
- JCR 2.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description LabelExistsVersionException()
Constructs a new instance of this class withnull
as its detail message.LabelExistsVersionException(java.lang.String message)
Constructs a new instance of this class with the specified detail message.LabelExistsVersionException(java.lang.String message, java.lang.Throwable rootCause)
Constructs a new instance of this class with the specified detail message and root cause.LabelExistsVersionException(java.lang.Throwable rootCause)
Constructs a new instance of this class with the specified root cause.
-
-
-
Constructor Detail
-
LabelExistsVersionException
public LabelExistsVersionException()
Constructs a new instance of this class withnull
as its detail message.
-
LabelExistsVersionException
public LabelExistsVersionException(java.lang.String message)
Constructs a new instance of this class with the specified detail message.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
LabelExistsVersionException
public LabelExistsVersionException(java.lang.String message, java.lang.Throwable rootCause)
Constructs a new instance of this class with the specified detail message and root cause.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.rootCause
- root failure cause
-
LabelExistsVersionException
public LabelExistsVersionException(java.lang.Throwable rootCause)
Constructs a new instance of this class with the specified root cause.- Parameters:
rootCause
- root failure cause
-
-