org.nhindirect.config.service
Class ConfigurationFault

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.nhindirect.config.service.ConfigurationFault
All Implemented Interfaces:
Serializable

@WebFault
public class ConfigurationFault
extends Exception

Configuration fault class.

See Also:
Serialized Form

Constructor Summary
ConfigurationFault()
          Default constructor.
ConfigurationFault(ConfigurationError anError)
          Construct a new ConfigurationFault with a specific ConfigurationError.
ConfigurationFault(String aMsg, ConfigurationError anError)
          Construct a new ConfigurationFault with a specific message and ConfigurationError.
 
Method Summary
static ConfigurationFault errorToFault(Exception e)
          Convert an Exception to a ConfigurationFault.
 ConfigurationError getError()
          Get the value of error.
 String getMessage()
          Return the value of message.
 void setError(ConfigurationError error)
          Set the value of error.
 void setMessage(String message)
          Set the message.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConfigurationFault

public ConfigurationFault()
Default constructor.


ConfigurationFault

public ConfigurationFault(ConfigurationError anError)
Construct a new ConfigurationFault with a specific ConfigurationError.

Parameters:
anError - A ConfigurationError.

ConfigurationFault

public ConfigurationFault(String aMsg,
                          ConfigurationError anError)
Construct a new ConfigurationFault with a specific message and ConfigurationError.

Parameters:
aMsg - A message.
anError - A ConfigurationError.
Method Detail

getMessage

public String getMessage()
Return the value of message.

Overrides:
getMessage in class Throwable
Returns:
the value of message.

setMessage

public void setMessage(String message)
Set the message.

Parameters:
message - The value of message.

getError

public ConfigurationError getError()
Get the value of error.

Returns:
the value of error.

setError

public void setError(ConfigurationError error)
Set the value of error.

Parameters:
error - The value of error.

errorToFault

public static ConfigurationFault errorToFault(Exception e)
Convert an Exception to a ConfigurationFault. TODO Map exceptions to fault errors

Parameters:
e - The Exception.
Returns:


Copyright © 2014. All Rights Reserved.