org.minetti.astrodevice.common.orb.exception
Class IiopException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by java.rmi.RemoteException
                  extended by org.minetti.astrodevice.common.orb.exception.IiopException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IiopBusinessException, IiopTechnicalException

public abstract class IiopException
extends RemoteException

Base class of all remote exceptions produced by astroDeviceServer.

Author:
Jean-Philippe MINETTI
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.RemoteException
detail
 
Constructor Summary
protected IiopException(String serverName, String hostname, String message, String userShortMessage, String userLongMessage, String userSolution)
          Hidden constructor (abstract class).
 
Method Summary
 String getHostname()
          Returns the hostname where astroDeviceServer is hosted.
 String getLocalizedMessage()
           
 String getMessage()
           
 String getServerName()
          Returns the name given to astroDeviceServer instance.
 String getUserLongMessage()
          Returns the long description to the user about the exception.
 String getUserShortMessage()
          Returns the short description to the user about the exception.
 String getUserSolution()
          Returns the message to the user for resolve the exception.
 String toString()
           
 
Methods inherited from class java.rmi.RemoteException
getCause
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, 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

IiopException

protected IiopException(String serverName,
                        String hostname,
                        String message,
                        String userShortMessage,
                        String userLongMessage,
                        String userSolution)
Hidden constructor (abstract class).

Parameters:
serverName - Name given to astroDeviceServer instance.
hostname - Hostname where astroDeviceServer is hosted.
message - Detail message (used for logging).
userShortMessage - Short description to the user about the exception.
userLongMessage - Long description to the user about the exception.
userSolution - Message to the user for resolve the exception.
Method Detail

getServerName

public final String getServerName()
Returns the name given to astroDeviceServer instance.

Returns:
Name given to astroDeviceServer instance.

getHostname

public final String getHostname()
Returns the hostname where astroDeviceServer is hosted.

Returns:
Hostname where astroDeviceServer is hosted.

getMessage

public final String getMessage()
Overrides:
getMessage in class RemoteException

getLocalizedMessage

public final String getLocalizedMessage()
Overrides:
getLocalizedMessage in class Throwable

getUserShortMessage

public final String getUserShortMessage()
Returns the short description to the user about the exception.

Returns:
Short description about the exception.

getUserLongMessage

public final String getUserLongMessage()
Returns the long description to the user about the exception.

Returns:
Long description about the exception.

getUserSolution

public final String getUserSolution()
Returns the message to the user for resolve the exception.

Returns:
Message for resolve the exception.

toString

public final String toString()
Overrides:
toString in class Throwable


Copyright © 2012 astroDevice. All Rights Reserved.