public class MarvinErrorHandler
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MarvinErrorHandler.TYPE
Error types
|
Constructor and Description |
---|
MarvinErrorHandler() |
Modifier and Type | Method and Description |
---|---|
static java.lang.RuntimeException |
handle(MarvinErrorHandler.TYPE type,
java.lang.Exception e)
Handles error returning a new RuntimeException
|
static java.lang.RuntimeException |
handle(MarvinErrorHandler.TYPE type,
java.lang.String complement)
Handles error returning a new RuntimeException
|
static java.lang.RuntimeException |
handle(MarvinErrorHandler.TYPE type,
java.lang.String complement,
java.lang.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,
java.lang.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,
java.lang.String args)
Handles error showing the message based on the enum error types
|
static void |
handleDialog(java.lang.String msg)
Handles error showing the message
|
static void |
handleDialog(java.lang.String msg,
java.lang.Exception err)
Handles error showing the message and writing the StackTrace at console
|
static void |
handleDialog(java.lang.String msg,
java.lang.String err)
Handles error showing the message
|
public static java.lang.RuntimeException handle(MarvinErrorHandler.TYPE type, java.lang.String complement)
type
- Error typecomplement
- complementary messagepublic static java.lang.RuntimeException handle(MarvinErrorHandler.TYPE type, java.lang.String complement, java.lang.Exception e)
type
- Error typecomplement
- complementary messagee
- exceptionpublic static java.lang.RuntimeException handle(MarvinErrorHandler.TYPE type, java.lang.Exception e)
type
- Error typee
- exceptionpublic static void handleDialog(MarvinErrorHandler.TYPE type)
type
- Error typepublic static void handleDialog(MarvinErrorHandler.TYPE type, java.lang.Exception err)
type
- Error typeerr
- Error objectpublic static void handleDialog(MarvinErrorHandler.TYPE type, java.lang.String args)
type
- Error typeerr
- Error messagepublic static void handleDialog(java.lang.String msg, java.lang.Exception err)
msg
- Message about the errorerr
- Error objectpublic static void handleDialog(java.lang.String msg)
msg
- Message about the errorpublic static void handleDialog(java.lang.String msg, java.lang.String err)
msg
- Message about the errorerro
- Error message