org.ow2.jonas.service
Class ServiceException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.ow2.jonas.service.ServiceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
AdmException, AdminException, DuplicateServerNameException, EarServiceException, JonasAlreadyStartedException, JWebContainerServiceException, MailServiceException, ResourceServiceException, WorkCleanerException, WSException

public class ServiceException
extends RuntimeException

Exception thrown by JOnAS Services.

See Also:
Serialized Form

Constructor Summary
ServiceException(String message)
          Constructor specifying only the cause message.
ServiceException(String message, Throwable throwable)
          Constructor with message description + cause
 
Method Summary
 String getMessage()
           
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServiceException

public ServiceException(String message)
Constructor specifying only the cause message.

Parameters:
message - Exception description

ServiceException

public ServiceException(String message,
                        Throwable throwable)
Constructor with message description + cause

Parameters:
message - Exception description
throwable - cause of the Exception
Method Detail

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
Returns:
Returns the message description of the Exception

toString

public String toString()
Overrides:
toString in class Throwable
Returns:
Returns a String representation of the Exception


Copyright © 2010 OW2 Consortium. All Rights Reserved.