protected AmazonServiceException newException ( String message ) throws Exception { Constructor < ? extends AmazonServiceException > constructor = exceptionClass . getConstructor ( String . class ) ; return constructor . newInstance ( message ) ; }
Constructs a new exception object of the type specified in this class s constructor and sets the specified error message .