public IpcLogEntry withException ( Throwable exception ) { this . exception = exception ; if ( statusDetail == null ) { statusDetail = exception . getClass ( ) . getSimpleName ( ) ; } if ( status == null ) { status = IpcStatus . forException ( exception ) ; } return this ; }
Set the exception that was thrown while trying to execute the request . This will be logged and can be used to fill in the error reason .