public Exception readException ( String id , InputStream in ) { ExceptionReader exceptionReader = ( ExceptionReader ) exceptionMap . get ( id ) ; if ( exceptionReader == null ) { return new UnexpectedException ( id ) ; } else { return exceptionReader . read ( in ) ; } }
Unmarshals from an input stream an exception thrown by the method .