2017-04-21 30 views

回答

1

您可以使用StatusReporter它有各種方法來記錄和顯示錯誤。

@Inject 
StatusReporter statusReporter; 

// Display (and log) error 
statusReporter.show(StatusReporter.ERROR, "Internal Error", exception); 

// Log error 
statusReporter.report(status, StatusReporter.LOG);