开发者

global catch all java Exceptions in JRuby Sinatra app

开发者 https://www.devze.com 2023-01-29 14:34 出处:网络
Im implementing a rest api with sinatra and jruby. The appl开发者_Go百科ication domain is implemented in java. I have not figured out how to catch all exceptions thrown by the java layer in Sinatra. t

Im implementing a rest api with sinatra and jruby. The appl开发者_Go百科ication domain is implemented in java. I have not figured out how to catch all exceptions thrown by the java layer in Sinatra. the global 'error do ... end' does not catch my java exception.

Any hints would be appreciated /floda

0

精彩评论

暂无评论...
验证码 换一张
取 消