In fact no. I should throw RuntimeException to see this exception on client side. But here i can get (in theory) something else , not inherit from RuntimeException class.