com.fatwire.cs.ui.exception
Class UIServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.fatwire.cs.ui.exception.UIException
              extended by com.fatwire.cs.ui.exception.UIServiceException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
UICSAccessFailureException

public class UIServiceException
extends UIException

Exception generated from the service layer of CS. Typically it will be created from the ErrorMessage object. If custom rendering is required due to additional parameters being set in the ErrorMessage a custom renderer must be set.

See Also:
Serialized Form

Nested Class Summary
static class UIServiceException.Severity
           
 
Constructor Summary
UIServiceException()
          Constructs a new Service exception with null as its detail message.
UIServiceException(long errno)
          Constructs a new exception with the specified errno.
UIServiceException(java.lang.Throwable cause)
          Creates an exception with a nested exception
 
Method Summary
 long getErrno()
          Method to return the error number
 UIServiceException.Severity getSeverity()
          Returns the severity level of this exception.
 void setErrno(long errno)
          Sets the error number that will be returned by getErrno()
 void setSeverity(UIServiceException.Severity severity)
          Method to sets the severity level that will be returned by getSeverity()
 
Methods inherited from class com.fatwire.cs.ui.exception.UIException
getMessage, getName, getRenderer, render, setName, setRenderer
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UIServiceException

public UIServiceException()
Constructs a new Service exception with null as its detail message. The cause is not initialized.


UIServiceException

public UIServiceException(long errno)
Constructs a new exception with the specified errno.

Parameters:
long - value of the error number

UIServiceException

public UIServiceException(java.lang.Throwable cause)
Creates an exception with a nested exception

Parameters:
Throwable - the cause of the exception
Method Detail

getSeverity

public UIServiceException.Severity getSeverity()
Returns the severity level of this exception.

Returns:
severity value

setSeverity

public void setSeverity(UIServiceException.Severity severity)
Method to sets the severity level that will be returned by getSeverity()

Parameters:
Severity - value of the level of severity

getErrno

public long getErrno()
Method to return the error number

Returns:
long value

setErrno

public void setErrno(long errno)
Sets the error number that will be returned by getErrno()

Parameters:
long - value of the error number


Copyright (c) 2003 - 2011 FatWire Corporation All Rights Reserved.