|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openorb.CORBA.SystemExceptionHelper
This class should be used as the helper for all system exceptions.
Constructor Summary | |
SystemExceptionHelper()
|
Method Summary | |
static SystemException |
create(java.lang.String repo_id,
int minor,
CompletionStatus completed)
Create a system exception from it's repository ID, minor value and completion status. |
static SystemException |
create(java.lang.String repo_id,
java.lang.String reason,
int minor,
CompletionStatus completed)
Create a system exception from it's repository ID, minor value and completion status. |
static SystemException |
extract(Any any)
Extract a system exception from an any. |
static java.lang.String |
id(SystemException ex)
Get the repository ID from an exception. |
static void |
insert(Any any,
SystemException sysex)
Insert a system exception into an any. |
static SystemException |
read(InputStream is)
Read a system exception from an input stream. |
static SystemException |
read(java.lang.String reasonPrefix,
InputStream is)
Read a system exception from an input stream. |
static TypeCode |
type(java.lang.String repo_id)
Get a typecode from a repository ID. |
static TypeCode |
type(SystemException ex)
Get a typecode from an exception. |
static void |
write(OutputStream out,
SystemException val)
Write a system excpetion to an output stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SystemExceptionHelper()
Method Detail |
public static TypeCode type(java.lang.String repo_id)
repo_id
- Repository ID of the system exception.public static TypeCode type(SystemException ex)
repo_id
- The exception to get the typecode of.public static java.lang.String id(SystemException ex)
ex
- the system exception.public static void insert(Any any, SystemException sysex)
any
- the any to get inserted into.ex
- the system exception to insert into the any.public static SystemException extract(Any any)
any
- the any to extract from.BAD_OPERATION
- the any does not contain a system exception.public static SystemException read(InputStream is)
public static SystemException read(java.lang.String reasonPrefix, InputStream is)
reasonPrefix
- prefix to add to the reason string.public static SystemException create(java.lang.String repo_id, int minor, CompletionStatus completed)
public static SystemException create(java.lang.String repo_id, java.lang.String reason, int minor, CompletionStatus completed)
reasonPrefix
- prefix to add to the reason string.public static void write(OutputStream out, SystemException val)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |