org.ourgrid.common.exception
Class OurgridException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.ourgrid.common.exception.OurgridException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ConfigException, CorePeerUIException, CouldNotGenerateKeyException, ExecutorException, FailCauseException, FilePermissionException, GumAlreadyAllocatedException, JobNotFoundException, KillReplicaException, MyGridIsNotRunningException, MyGridXMLException, PeerUIException, RequestDoesNotExistException, SyntacticalErrorAtExpressionException, TokenErrorException, UnableToDigestFileException, UserAgentPauseException

public class OurgridException
extends java.lang.Exception

This class is the Mother-Exception of the MyGrid. The idea is to use its subclasses to signal that some problem with MyGrid-semantic has occured. For instance, problems when creating Playpen or Storage, since both are concepts defined by MyGrid.

See Also:
Serialized Form

Constructor Summary
OurgridException()
          Constructs a new MyGridException object
OurgridException(java.lang.String message)
          Constructs a new MyGridException object
OurgridException(java.lang.String message, java.lang.Throwable newDetail)
          Constructs a new MyGridException object
OurgridException(java.lang.Throwable newDetail)
          Constructs a new MyGridException object
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.StackTraceElement[] getStackTrace()
           
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream ps)
           
 void printStackTrace(java.io.PrintWriter pw)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OurgridException

public OurgridException()
Constructs a new MyGridException object


OurgridException

public OurgridException(java.lang.Throwable newDetail)
Constructs a new MyGridException object

Parameters:
newDetail - an object that specifies the exception details

OurgridException

public OurgridException(java.lang.String message)
Constructs a new MyGridException object

Parameters:
message - a string representing the exception message

OurgridException

public OurgridException(java.lang.String message,
                        java.lang.Throwable newDetail)
Constructs a new MyGridException object

Parameters:
message - a string representing the exception message
newDetail - an object that specifies the exception details
Method Detail

getStackTrace

public java.lang.StackTraceElement[] getStackTrace()
Overrides:
getStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintWriter pw)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream ps)
Overrides:
printStackTrace in class java.lang.Throwable

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable