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:
  • Constructor Details

    • InvalidAS2NameException

      public InvalidAS2NameException(String name, int index)
      Constructs an InvalidAS2NameException for the specified name and index.
      Parameters:
      name - - the AS2 name that is invalid.
      index - - the index in the name of the invalid character
  • Method Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • 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 in name
      Returns:
      the index of the invalid character in name