Class InvalidAS2NameException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.camel.component.as2.api.InvalidAS2NameException
-
- All Implemented Interfaces:
Serializable
public class InvalidAS2NameException extends Exception
Thrown to indicated a given AS2 name is invalid.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidAS2NameException(String name, int index)Constructs anInvalidAS2NameExceptionfor the specified name and index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetIndex()Returns the index of the invalid character innameStringgetMessage()StringgetName()Returns the invalid AS2 name-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InvalidAS2NameException
public InvalidAS2NameException(String name, int index)
Constructs anInvalidAS2NameExceptionfor the specified name and index.- Parameters:
name- - the AS2 name that is invalid.index- - the index in thenameof the invalid character
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessagein classThrowable
-
getName
public String 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
-
-