Class TypeNotSupportedException

    • Constructor Detail

      • TypeNotSupportedException

        public TypeNotSupportedException​(TokenType type,
                                         String reason)
        Constructs a TypeNotSupportException indicating the specified type and providing additional context information about the failure.
        Parameters:
        type - the type of the object in violation
        reason - additional contextual information about the violated constraint
      • TypeNotSupportedException

        public TypeNotSupportedException​(RecordTokenType type,
                                         String reason,
                                         FieldTypeNotSupportedException cause)
        Constructs a TypeNotSupportException indicating the specified record type and field causing the failure.
        Parameters:
        type - the record type of the object in violation
        reason - additional contextual information about the violated constraint
        cause - the field error triggering this exception
    • Method Detail

      • getType

        public TokenType getType()
        Gets the type which violated the constraint.
        Returns:
        the type which raised the error