public class MarvinErrorHandler extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
MarvinErrorHandler.TYPE
Error types
|
| 构造器和说明 |
|---|
MarvinErrorHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
static RuntimeException |
handle(MarvinErrorHandler.TYPE type,
Exception e)
Handles error returning a new RuntimeException
|
static RuntimeException |
handle(MarvinErrorHandler.TYPE type,
String complement)
Handles error returning a new RuntimeException
|
static RuntimeException |
handle(MarvinErrorHandler.TYPE type,
String complement,
Exception e)
Handles error returning a new RuntimeException
|
static void |
handleDialog(MarvinErrorHandler.TYPE type)
Handles error showing the message based on the enum error types
|
static void |
handleDialog(MarvinErrorHandler.TYPE type,
Exception err)
Handles error showing the message based on the enum error types and writing the StackTrace at console
|
static void |
handleDialog(MarvinErrorHandler.TYPE type,
String args)
Handles error showing the message based on the enum error types
|
static void |
handleDialog(String msg)
Handles error showing the message
|
static void |
handleDialog(String msg,
Exception err)
Handles error showing the message and writing the StackTrace at console
|
static void |
handleDialog(String msg,
String err)
Handles error showing the message
|
public static RuntimeException handle(MarvinErrorHandler.TYPE type, String complement)
type - Error typecomplement - complementary messagepublic static RuntimeException handle(MarvinErrorHandler.TYPE type, String complement, Exception e)
type - Error typecomplement - complementary messagee - exceptionpublic static RuntimeException handle(MarvinErrorHandler.TYPE type, Exception e)
type - Error typee - exceptionpublic static void handleDialog(MarvinErrorHandler.TYPE type)
type - Error typepublic static void handleDialog(MarvinErrorHandler.TYPE type, Exception err)
type - Error typeerr - Error objectpublic static void handleDialog(MarvinErrorHandler.TYPE type, String args)
type - Error typeerr - Error messagepublic static void handleDialog(String msg, Exception err)
msg - Message about the errorerr - Error objectpublic static void handleDialog(String msg)
msg - Message about the errorCopyright © 2018. All rights reserved.