Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
jvx:communication:rest_exceptionhandling [2019/07/09 10:31]
admin
jvx:communication:rest_exceptionhandling [2019/07/09 10:32]
admin
Line 14: Line 14:
 if (!isBookingAvailable()) if (!isBookingAvailable())
 { {
-    IBean bnDetails ​= new Bean(); +    IBean details ​= new Bean(); 
-    ​bnDetails.put("​id",​ errorId); +    ​details.put("​id",​ errorId); 
-    ​bnDetails.put("​message",​ "The booking feature isn't yet implemented!"​);​+    ​details.put("​message",​ "The booking feature isn't yet implemented!"​);​
  
-    throw new RestServiceException(501, ​bnDetails);+    throw new RestServiceException(501, ​details);
 } }
  
 ... ...
 </​file>​ </​file>​
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information