source: gs3-extensions/atea-nlp-tools/trunk/src/koreromaori-proxy/src/main/java/org/atea/nlptools/koreromaoriinterface/exceptions/ReoTuhituhiException.java@ 35242

Last change on this file since 35242 was 35242, checked in by davidb, 3 years ago

Improve error handling for calls to the Reo Tuhituhi API

File size: 700 bytes
Line 
1package org.atea.nlptools.koreromaoriinterface.exceptions;
2
3public class ReoTuhituhiException
4 extends Exception
5{
6 private final int statusCode;
7 private final String statusMessage;
8
9 public ReoTuhituhiException(int statusCode, String statusMessage) {
10 this.statusCode = statusCode;
11 this.statusMessage = statusMessage;
12 }
13
14 public ReoTuhituhiException(int statusCode, String statusMessage, String message) {
15 super(message);
16
17 this.statusCode = statusCode;
18 this.statusMessage = statusMessage;
19 }
20
21 public int getStatusCode() {
22 return statusCode;
23 }
24
25 public String getStatusMessage() {
26 return statusMessage;
27 }
28}
Note: See TracBrowser for help on using the repository browser.