Class sunw.corba.SystemException
All Packages Class Hierarchy This Package Previous Next Index
Class sunw.corba.SystemException
java.lang.Object
|
+----java.lang.Throwable
|
+----java.lang.Exception
|
+----sunw.orb.ORBException
|
+----sunw.corba.CORBAException
|
+----sunw.corba.SystemException
- public class SystemException
- extends CORBAException
A class template for the standard exceptions defined for the Orb. These exceptions
may be returned as a result of any Corba operation invocation. The standard
exceptions contain a minor code, allowing more detailed specification, and a
completion status (Yes, No, or Maybe). This class is subclassed to generate each
one of the set of standard Orb exceptions.
-
CompletedMaybe
- The operation may or may not have completed
-
CompletedNo
- The operation has not completed
-
CompletedYes
- The operation has completed
-
SystemException()
- The null Constructor, invoked only by direct subclasses.
-
classNameOf(String)
-
Get the class name corresponding to a particular repository Id.
-
fromORBException(ORBException)
-
-
getCompleted()
-
-
getMinorCode()
-
-
newException(String)
-
-
newException(String, int, int)
-
-
repositoryId()
-
-
setCompleted(int)
-
-
setMinorCode(int)
-
-
throwException(String)
- Throws a new instance of the named exception.
-
throwException(String, int, int)
- Throws a new instance of the named exception.
-
toString()
-
Convert this exception to a representative string.
CompletedYes
public final static int CompletedYes
- The operation has completed
CompletedNo
public final static int CompletedNo
- The operation has not completed
CompletedMaybe
public final static int CompletedMaybe
- The operation may or may not have completed
SystemException
public SystemException()
- The null Constructor, invoked only by direct subclasses.
fromORBException
public static SystemException fromORBException(ORBException that)
toString
public String toString()
- Convert this exception to a representative string.
- Overrides:
- toString in class CORBAException
getCompleted
public int getCompleted()
setCompleted
public void setCompleted(int completed)
getMinorCode
public int getMinorCode()
setMinorCode
public void setMinorCode(int minorCode)
repositoryId
public String repositoryId()
classNameOf
public static String classNameOf(String repositoryId)
- Get the class name corresponding to a particular repository Id. This is used
by the system to unmarshal (instantiate) the appropriate exception class for an
marshaled as the value of its repository Id.
- Parameters:
- repositoryId - The repository Id for which we want a class name.
throwException
public static void throwException(String ex) throws SystemException
- Throws a new instance of the named exception. Throwing exceptions
this way delays loading specific System exception subclasses until
they are actually thrown.
- Parameters:
- ex - The complete class name of the exception to throw.
- Throws: SystemException
- One of the CORBA System Exceptions.
newException
public static SystemException newException(String ex)
newException
public static SystemException newException(String ex,
int minor,
int completed)
throwException
public static void throwException(String ex,
int minor,
int completed) throws SystemException
- Throws a new instance of the named exception. Throwing exceptions
this way delays loading specific System exception subclasses until
they are actually thrown.
- Parameters:
- ex - The complete class name of the exception to throw.
- minor - The minor exception code.
- completed - The operation completion status.
- Throws: SystemException
- One of the CORBA System Exceptions.
All Packages Class Hierarchy This Package Previous Next Index