com.quartercode.quarterbukkit.api.exception
Class ParseException
java.lang.Object
org.bukkit.event.Event
com.quartercode.quarterbukkit.api.exception.GameException
com.quartercode.quarterbukkit.api.exception.ParseException
public class ParseException
- extends GameException
The ParseException occurres if something goes wrong while installing a plugin via Updater
.
Nested classes/interfaces inherited from class org.bukkit.event.Event |
org.bukkit.event.Event.Result |
Constructor Summary |
ParseException(org.bukkit.plugin.Plugin plugin,
java.lang.Exception cause,
java.lang.String string)
Creates a ParseException filled with a cause as an Exception for the error. |
ParseException(org.bukkit.plugin.Plugin plugin,
java.lang.Exception cause,
java.lang.String string,
java.lang.String message)
Creates a ParseException filled with a cause as an Exception for the error and an informational message. |
Method Summary |
java.lang.Exception |
getCause()
Returns the cause for the error. |
java.lang.String |
getString()
Returns the String which could not be parsed. |
Methods inherited from class org.bukkit.event.Event |
getEventName, isAsynchronous |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParseException
public ParseException(org.bukkit.plugin.Plugin plugin,
java.lang.Exception cause,
java.lang.String string)
- Creates a ParseException filled with a cause as an
Exception
for the error.
- Parameters:
plugin
- The causing Plugin
.cause
- The cause for the error.string
- String
which could not be parsed.
ParseException
public ParseException(org.bukkit.plugin.Plugin plugin,
java.lang.Exception cause,
java.lang.String string,
java.lang.String message)
- Creates a ParseException filled with a cause as an
Exception
for the error and an informational message.
- Parameters:
plugin
- The causing Plugin
.cause
- The cause for the error.string
- The String
which could not be parsed.message
- The informational message.
getCause
public java.lang.Exception getCause()
- Returns the cause for the error.
- Returns:
- The cause for the error as an
Exception
.
getString
public java.lang.String getString()
- Returns the
String
which could not be parsed.
- Returns:
- The
String
which could not be parsed.