/** * Static method for reading a CORBA standard exception from a stream. * * @param strm The InputStream to use for unmarshaling. */ public static SystemException readSystemException(InputStream strm) { try { String name = classNameOf(strm.read_string()); SystemException ex = (SystemException) ORBClassLoader.loadClass(name).newInstance(); ex.minor = strm.read_long(); ex.completed = CompletionStatus.from_int(strm.read_long()); return ex; } catch (Exception ex) { throw wrapper.unknownSysex(CompletionStatus.COMPLETED_MAYBE, ex); } }