Class CommitFailedException

  • All Implemented Interfaces:
    Serializable

    public class CommitFailedException
    extends Exception
    Main exception thrown by methods defined on the ContentSession interface indicating that committing a given set of changes failed.
    See Also:
    Serialized Form
    • Constructor Detail

      • CommitFailedException

        public CommitFailedException​(String type,
                                     int code,
                                     String message,
                                     Throwable cause)
      • CommitFailedException

        public CommitFailedException​(String type,
                                     int code,
                                     String message)
    • Method Detail

      • isOfType

        public boolean isOfType​(String type)
        Checks whether this exception is of the given type.
        Parameters:
        type - type name
        Returns:
        true iff this exception is of the given type
      • isAccessViolation

        public boolean isAccessViolation()
        Checks whether this is an access violation exception.
        Returns:
        true iff this is an access violation exception
      • isAccessControlViolation

        public boolean isAccessControlViolation()
        Checks whether this is an access control violation exception.
        Returns:
        true iff this is an access control violation exception
      • isConstraintViolation

        public boolean isConstraintViolation()
        Checks whether this is a constraint violation exception.
        Returns:
        true iff this is a constraint violation exception
      • getSource

        public String getSource()
        Returns the name of the source of this exception.
        Returns:
        source name
      • getType

        public String getType()
        Return the name of the type of this exception.
        Returns:
        type name
      • getCode

        public int getCode()
        Returns the type-specific error code of this exception.
        Returns:
        error code