Class InvalidAS2NameException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.component.as2.api.InvalidAS2NameException
- All Implemented Interfaces:
Serializable
Thrown to indicated a given AS2 name is invalid.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidAS2NameException(String name, int index) Constructs anInvalidAS2NameExceptionfor the specified name and index. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidAS2NameException
Constructs anInvalidAS2NameExceptionfor the specified name and index.- Parameters:
name- - the AS2 name that is invalid.index- - the index in thenameof the invalid character
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-
getName
Returns the invalid AS2 name- Returns:
- the invalid AS2 name
-
getIndex
public int getIndex()Returns the index of the invalid character inname- Returns:
- the index of the invalid character in
name
-