154155156157158159160
public String testMySubException(String s) { String[] tokens = s.split(":"); assert tokens.length == 2; int statusCode = Integer.valueOf(tokens[1]); Response r = Response.status(statusCode).build(); throw new MySubException(r); }