blade create servlet throwCustomException
介绍
参数
--exception string 异常类,带全包名,必须继承 java.lang.Exception 或 java.lang.Exception 本身
--exception-message string 指定异常类信息,默认值是 chaosblade-mock-exception案例
blade c servlet throwCustomException --exception org.springframework.beans.BeansException --exception-message mock-beans-exception --requestpath /hello --effect-count 3
{"code":200,"success":true,"result":"d4a63f4f59f76f4a"}
实验原理
常见问题
Last updated
Was this helpful?
