Package org.openstreetmap.josm.tools
Class OptionParser.OptionParseException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.openstreetmap.josm.tools.OptionParser.OptionParseException
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- OptionParser
public static class OptionParser.OptionParseException extends RuntimeException
Exception thrown when an option cannot be parsed.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
localizedMessage
-
Constructor Summary
Constructors Constructor Description OptionParseException()
Create an empty error with no descriptionOptionParseException(String localizedMessage)
Create an error with a localized descriptionOptionParseException(String localizedMessage, Throwable t)
Create an error with a localized description and a root cause
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLocalizedMessage()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
localizedMessage
private final String localizedMessage
-
-
Constructor Detail
-
OptionParseException
public OptionParseException()
Create an empty error with no description
-
OptionParseException
public OptionParseException(String localizedMessage)
Create an error with a localized description- Parameters:
localizedMessage
- The message to display to the user.
-
OptionParseException
public OptionParseException(String localizedMessage, Throwable t)
Create an error with a localized description and a root cause- Parameters:
localizedMessage
- The message to display to the user.t
- The error that caused this message to be displayed.
-
-
Method Detail
-
getLocalizedMessage
public String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classThrowable
-
-