You can buy this project and download/modify it how often you want.
package {{apiPackage}}; {{>generatedAnnotation}} public class ApiException extends Exception { private int code; public ApiException (int code, String msg) { super(msg); this.code = code; } }