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:
java.io.Serializable
- Enclosing class:
- OptionParser
public static class OptionParser.OptionParseException extends java.lang.RuntimeException
Exception thrown when an option cannot be parsed.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
localizedMessage
-
Constructor Summary
Constructors Constructor Description OptionParseException()
Create an empty error with no descriptionOptionParseException(java.lang.String localizedMessage)
Create an error with a localized descriptionOptionParseException(java.lang.String localizedMessage, java.lang.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 java.lang.String
getLocalizedMessage()
-
-
-
Field Detail
-
localizedMessage
private final java.lang.String localizedMessage
-
-
Constructor Detail
-
OptionParseException
public OptionParseException()
Create an empty error with no description
-
OptionParseException
public OptionParseException(java.lang.String localizedMessage)
Create an error with a localized description- Parameters:
localizedMessage
- The message to display to the user.
-
OptionParseException
public OptionParseException(java.lang.String localizedMessage, java.lang.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 java.lang.String getLocalizedMessage()
- Overrides:
getLocalizedMessage
in classjava.lang.Throwable
-
-