-
- All Implemented Interfaces:
-
java.io.Serializable
public class DebugServerException extends RuntimeException
Tracks errors connecting to or received from the debug server. The debug server returns errors as json objects. This exception represents that error.
-
-
Constructor Summary
Constructors Constructor Description DebugServerException(String description)DebugServerException(String detailMessage, Throwable throwable)
-
Method Summary
Modifier and Type Method Description static DebugServerExceptionmakeGeneric(String url, String reason, Throwable t)static DebugServerExceptionmakeGeneric(String url, String reason, String extra, Throwable t)StringgetOriginalMessage()static DebugServerExceptionparse(String url, String str)Parse a DebugServerException from the server json string. -
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
makeGeneric
static DebugServerException makeGeneric(String url, String reason, Throwable t)
-
makeGeneric
static DebugServerException makeGeneric(String url, String reason, String extra, Throwable t)
-
getOriginalMessage
String getOriginalMessage()
-
parse
@Nullable() static DebugServerException parse(String url, String str)
Parse a DebugServerException from the server json string.
- Parameters:
str- json string returned by the debug server
-
-
-
-