Add RuntimeException option (#5405)

* add option to change Exception to RuntimeException

* rename propertie
remove space in template
This commit is contained in:
Mario
2017-04-21 16:13:57 +02:00
committed by wing328
parent 122db78b1a
commit f61e0d4024
3 changed files with 27 additions and 16 deletions

View File

@@ -6,7 +6,7 @@ import java.util.Map;
import java.util.List;
{{>generatedAnnotation}}
public class ApiException extends Exception {
public class ApiException extends{{#useRuntimeException}} RuntimeException {{/useRuntimeException}}{{^useRuntimeException}} Exception {{/useRuntimeException}}{
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
private String responseBody = null;