hekailiang / squirrel

squirrel-foundation is a State Machine library, which provided a lightweight, easy use, type safe and programmable state machine implementation for Java.
http://hekailiang.github.io/squirrel/
Other
2.19k stars 540 forks source link

异常怎么往外抛出 #94

Closed lycaste closed 5 years ago

lycaste commented 5 years ago

自定义的异常 全部被SquirrelRuntimeException 给吃掉,然后SquirrelRuntimeException抛给了前端。我怎么能把自定义异常丢出去

hekailiang commented 5 years ago

你可以看下“Transition Exception Handling“这一部分文档

lycaste commented 5 years ago

谢谢

DropOfJupiter commented 4 years ago

为何我重写了com.aiya.kpy.ordct.fsm.OrderChargeBackStateMachine#afterTransitionCausedException 却进不来该方法。。。