Skip to content

Commit 5f4cb0b

Browse files
committed
fix: deserializer
1 parent d93e46a commit 5f4cb0b

20 files changed

+60
-139
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class BadRequestError extends APIException {
78
/**
89
* BadRequestError constructor.
@@ -12,7 +13,7 @@ public class BadRequestError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public BadRequestError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public BadRequestError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class ForbiddenError extends APIException {
78
/**
89
* ForbiddenError constructor.
@@ -12,7 +13,7 @@ public class ForbiddenError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public ForbiddenError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public ForbiddenError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class GatewayTimeoutError extends APIException {
78
/**
89
* GatewayTimeoutError constructor.
@@ -12,7 +13,7 @@ public class GatewayTimeoutError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public GatewayTimeoutError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public GatewayTimeoutError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class InternalServerError extends APIException {
78
/**
89
* InternalServerError constructor.
@@ -12,7 +13,7 @@ public class InternalServerError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public InternalServerError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public InternalServerError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class InvalidRequestError extends APIException {
78
/**
89
* InvalidRequestError constructor.
@@ -12,7 +13,7 @@ public class InvalidRequestError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public InvalidRequestError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public InvalidRequestError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class MethodNotAllowedError extends APIException {
78
/**
89
* MethodNotAllowedError constructor.
@@ -12,7 +13,7 @@ public class MethodNotAllowedError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public MethodNotAllowedError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public MethodNotAllowedError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class NotFoundError extends APIException {
78
/**
89
* NotFoundError constructor.
@@ -12,7 +13,7 @@ public class NotFoundError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public NotFoundError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public NotFoundError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class PaymentError extends APIException {
78
/**
89
* PaymentError constructor.
@@ -12,7 +13,7 @@ public class PaymentError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public PaymentError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public PaymentError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class RateLimitError extends APIException {
78
/**
89
* RateLimitError constructor.
@@ -12,7 +13,7 @@ public class RateLimitError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public RateLimitError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public RateLimitError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package com.easypost.exception.API;
22

3-
import com.easypost.model.FieldErrorOrStringList;
43
import com.easypost.exception.APIException;
54

5+
import java.util.List;
6+
67
public class RedirectError extends APIException {
78
/**
89
* RedirectError constructor.
@@ -12,7 +13,7 @@ public class RedirectError extends APIException {
1213
* @param errors the errors array
1314
* @param statusCode the exception status code
1415
*/
15-
public RedirectError(final String message, final String code, FieldErrorOrStringList errors, final int statusCode) {
16+
public RedirectError(final String message, final String code, List<Object> errors, final int statusCode) {
1617
super(message, code, errors, statusCode);
1718
}
1819
}

0 commit comments

Comments
 (0)