copyright The Portico Project 2008.

org.portico.shared.compat
Class JException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.portico.shared.compat.JException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
JArrayIndexOutOfBounds, JAttributeNotDefined, JAttributeNotOwned, JAttributeNotPublished, JConcurrentAccessAttempted, JCouldNotOpenFED, JDeletePrivilegeNotHeld, JEnableTimeConstrainedPending, JEnableTimeRegulationPending, JErrorReadingFED, JFederateAlreadyExecutionMember, JFederateNotExecutionMember, JFederateOwnsAttributes, JFederatesCurrentlyJoined, JFederationExecutionAlreadyExists, JFederationExecutionDoesNotExist, JFederationTimeAlreadyPassed, JInteractionClassNotDefined, JInteractionClassNotPublished, JInteractionClassNotSubscribed, JInteractionParameterNotDefined, JInvalidExtents, JInvalidFederationTime, JInvalidLookahead, JInvalidRegionContext, JInvalidResignAction, JObjectAlreadyRegistered, JObjectClassNotDefined, JObjectClassNotPublished, JObjectClassNotSubscribed, JObjectNotKnown, JOwnershipAcquisitionPending, JRegionInUse, JRegionNotKnown, JRestoreInProgress, JRestoreNotRequested, JRTIinternalError, JSaveInProgress, JSaveNotInitiated, JSpaceNotDefined, JSynchronizationLabelNotAnnounced, JTimeAdvanceAlreadyInProgress, JTimeConstrainedAlreadyEnabled, JTimeConstrainedWasNotEnabled, JTimeRegulationAlreadyEnabled, JTimeRegulationWasNotEnabled

public class JException
extends Exception

This is the Portico version of RTIexception (and should be treated as such). Sadly, the DLC specified exception don't include any way to set a root cause (something I consider a cardinal sin - when dealing with errors you need as much information as possible!).This class includes a method to get an RTIinternalError instance from it to save anyone doing any conversion between it and RTI problems.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
 
Constructor Summary
JException()
          Just create an empty exception
JException(String message)
           
JException(String message, Throwable cause)
           
JException(Throwable cause)
           
 
Method Summary
 JRTIinternalError asRTIError()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

JException

public JException()
Just create an empty exception


JException

public JException(String message)
Parameters:
message - The message to create the exception with

JException

public JException(Throwable cause)
Parameters:
cause - The cause of the exception

JException

public JException(String message,
                  Throwable cause)
Parameters:
message - The message to create the exception with
cause - The cause of the exception
Method Detail

asRTIError

public JRTIinternalError asRTIError()

copyright The Portico Project 2008.