Package fr.dyade.aaa.agent.conf
Class ParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- fr.dyade.aaa.agent.conf.ParseException
-
- All Implemented Interfaces:
Serializable
public class ParseException extends Exception
Thrown to indicate that the Configuration is invalid.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private StringfileNameName of the configuration file.private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ParseException()Constructs a newInvalidConfigurationExceptionwith no detail message.ParseException(String s)Constructs a newInvalidConfigurationExceptionwith the specified detail message.ParseException(String s, Throwable cause)Constructs a newInvalidConfigurationExceptionwith the specified detail message and cause.ParseException(Throwable cause)Constructs a newInvalidConfigurationExceptionwith the specified cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()Returns the detail message string of this throwable.voidsetFileName(String fileName)Sets the fileName field of the exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
fileName
private String fileName
Name of the configuration file. May be set after the exception has been created.
-
-
Constructor Detail
-
ParseException
public ParseException()
Constructs a newInvalidConfigurationExceptionwith no detail message.
-
ParseException
public ParseException(String s)
Constructs a newInvalidConfigurationExceptionwith the specified detail message.- Parameters:
s- the detail message.
-
ParseException
public ParseException(String s, Throwable cause)
Constructs a newInvalidConfigurationExceptionwith the specified detail message and cause.- Parameters:
s- the detail message.cause- the cause of the exception
-
ParseException
public ParseException(Throwable cause)
Constructs a newInvalidConfigurationExceptionwith the specified cause.- Parameters:
cause- the cause of the exception
-
-
Method Detail
-
setFileName
public void setFileName(String fileName)
Sets the fileName field of the exception.- Parameters:
fileName- name of the file holding the configuration definition
-
getMessage
public String getMessage()
Returns the detail message string of this throwable.- Overrides:
getMessagein classThrowable
-
-