public class GsException extends Exception
Modifier and Type | Field and Description |
---|---|
static int |
GRAVITY_ERROR
really bad
|
static int |
GRAVITY_INFO
low gravity
|
static int |
GRAVITY_NORMAL
normal error
|
Constructor and Description |
---|
GsException(int gravity,
Exception e)
create a GsException.
|
GsException(int gravity,
String message)
create a GsException.
|
GsException(int gravity,
String[] messages) |
GsException(String message,
Exception excep) |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(String message) |
int |
getGravity()
get the gravity of the error, this should be one of
GRAVITY_INFO, GRAVITY_NORMAL or GRAVITY_ERROR.
|
String |
getMessage()
get the message associated with the exception.
|
String |
getTitle()
get a title for the error window.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int GRAVITY_INFO
public static final int GRAVITY_NORMAL
public static final int GRAVITY_ERROR
public GsException(int gravity, String message)
gravity
- the gravity level of the exceptionmessage
- the error messagepublic GsException(int gravity, Exception e)
gravity
- the gravity level of the exceptione
- the original exceptionpublic GsException(int gravity, String[] messages)
public int getGravity()
public String getMessage()
getMessage
in class Throwable
Throwable.getMessage()
public String getTitle()
public void addMessage(String message)
Copyright © 2005–2020. All rights reserved.