Class UIMA_IllegalArgumentException

  • All Implemented Interfaces:
    java.io.Serializable

    public class UIMA_IllegalArgumentException
    extends UIMARuntimeException
    Thrown to indicate that a method has been passed an illegal or inappropriate argument.
    See Also:
    Serialized Form
    • Field Detail

      • ILLEGAL_ARGUMENT

        public static final java.lang.String ILLEGAL_ARGUMENT
        Message key for a standard UIMA exception message: "Value "{0}" is not valid for argument "{1}" of method {2}."
        See Also:
        Constant Field Values
      • METADATA_ATTRIBUTE_TYPE_MISMATCH

        public static final java.lang.String METADATA_ATTRIBUTE_TYPE_MISMATCH
        Message key for a standard UIMA exception message: "The value {0} does not match the data type of metadata attribute {1}."
        See Also:
        Constant Field Values
      • MUST_IMPLEMENT_XMLIZABLE

        public static final java.lang.String MUST_IMPLEMENT_XMLIZABLE
        Message key for a standard UIMA exception message: "An attempt was made to register class {0} with the XML parser. This class does not implement the XMLizable interface."
        See Also:
        Constant Field Values
    • Constructor Detail

      • UIMA_IllegalArgumentException

        public UIMA_IllegalArgumentException()
        Creates a new exception with a null message.
      • UIMA_IllegalArgumentException

        public UIMA_IllegalArgumentException​(java.lang.Throwable aCause)
        Creates a new exception with the specified cause and a null message.
        Parameters:
        aCause - the original exception that caused this exception to be thrown, if any
      • UIMA_IllegalArgumentException

        public UIMA_IllegalArgumentException​(java.lang.String aResourceBundleName,
                                             java.lang.String aMessageKey,
                                             java.lang.Object[] aArguments)
        Creates a new exception with a the specified message.
        Parameters:
        aResourceBundleName - the base name of the resource bundle in which the message for this exception is located.
        aMessageKey - an identifier that maps to the message for this exception. The message may contain placeholders for arguments as defined by the MessageFormat class.
        aArguments - The arguments to the message. null may be used if the message has no arguments.
      • UIMA_IllegalArgumentException

        public UIMA_IllegalArgumentException​(java.lang.String aResourceBundleName,
                                             java.lang.String aMessageKey,
                                             java.lang.Object[] aArguments,
                                             java.lang.Throwable aCause)
        Creates a new exception with the specified message and cause.
        Parameters:
        aResourceBundleName - the base name of the resource bundle in which the message for this exception is located.
        aMessageKey - an identifier that maps to the message for this exception. The message may contain placeholders for arguments as defined by the MessageFormat class.
        aArguments - The arguments to the message. null may be used if the message has no arguments.
        aCause - the original exception that caused this exception to be thrown, if any
      • UIMA_IllegalArgumentException

        public UIMA_IllegalArgumentException​(java.lang.String aMessageKey,
                                             java.lang.Object[] aArguments)
        Creates a new exception with a message from the UIMARuntimeException.STANDARD_MESSAGE_CATALOG.
        Parameters:
        aMessageKey - an identifier that maps to the message for this exception. The message may contain placeholders for arguments as defined by the MessageFormat class.
        aArguments - The arguments to the message. null may be used if the message has no arguments.
      • UIMA_IllegalArgumentException

        public UIMA_IllegalArgumentException​(java.lang.String aMessageKey,
                                             java.lang.Object[] aArguments,
                                             java.lang.Throwable aCause)
        Creates a new exception with the specified cause and a message from the UIMARuntimeException.STANDARD_MESSAGE_CATALOG.
        Parameters:
        aMessageKey - an identifier that maps to the message for this exception. The message may contain placeholders for arguments as defined by the MessageFormat class.
        aArguments - The arguments to the message. null may be used if the message has no arguments.
        aCause - the original exception that caused this exception to be thrown, if any