org.nhindirect.config.service
Class ConfigurationFault

java.lang.Object
  extended by org.nhindirect.config.service.ConfigurationFault

@WebFault
public class ConfigurationFault
extends Object

Configuration fault class.


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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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.

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 © 2011. All Rights Reserved.