marvin.util
Class MarvinErrorHandler

java.lang.Object
  extended by marvin.util.MarvinErrorHandler

public class MarvinErrorHandler
extends java.lang.Object

Dialog message errors.


Nested Class Summary
static class MarvinErrorHandler.TYPE
          Error types
 
Constructor Summary
MarvinErrorHandler()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarvinErrorHandler

public MarvinErrorHandler()
Method Detail

handle

public static java.lang.RuntimeException handle(MarvinErrorHandler.TYPE type,
                                                java.lang.String complement)
Handles error returning a new RuntimeException

Parameters:
type - Error type
complement - complementary message

handle

public static java.lang.RuntimeException handle(MarvinErrorHandler.TYPE type,
                                                java.lang.String complement,
                                                java.lang.Exception e)
Handles error returning a new RuntimeException

Parameters:
type - Error type
complement - complementary message
e - exception

handle

public static java.lang.RuntimeException handle(MarvinErrorHandler.TYPE type,
                                                java.lang.Exception e)
Handles error returning a new RuntimeException

Parameters:
type - Error type
e - exception

handleDialog

public static void handleDialog(MarvinErrorHandler.TYPE type)
Handles error showing the message based on the enum error types

Parameters:
type - Error type

handleDialog

public 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

Parameters:
type - Error type
err - Error object

handleDialog

public static void handleDialog(MarvinErrorHandler.TYPE type,
                                java.lang.String args)
Handles error showing the message based on the enum error types

Parameters:
type - Error type
err - Error message

handleDialog

public static void handleDialog(java.lang.String msg,
                                java.lang.Exception err)
Handles error showing the message and writing the StackTrace at console

Parameters:
msg - Message about the error
err - Error object

handleDialog

public static void handleDialog(java.lang.String msg)
Handles error showing the message

Parameters:
msg - Message about the error

handleDialog

public static void handleDialog(java.lang.String msg,
                                java.lang.String err)
Handles error showing the message

Parameters:
msg - Message about the error
erro - Error message