|
|
@ -21,21 +21,17 @@ package org.wso2.carbon.device.mgt.iot.input.adapter.http.oauth.exception;
|
|
|
|
* This Exception will be thrown, when there any interference with token validation flow.
|
|
|
|
* This Exception will be thrown, when there any interference with token validation flow.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public class OAuthTokenValidationException extends Exception {
|
|
|
|
public class OAuthTokenValidationException extends Exception {
|
|
|
|
private String errMessage;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public OAuthTokenValidationException(String msg, Exception nestedEx) {
|
|
|
|
public OAuthTokenValidationException(String msg, Exception nestedEx) {
|
|
|
|
super(msg, nestedEx);
|
|
|
|
super(msg, nestedEx);
|
|
|
|
setErrorMessage(msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public OAuthTokenValidationException(String message, Throwable cause) {
|
|
|
|
public OAuthTokenValidationException(String message, Throwable cause) {
|
|
|
|
super(message, cause);
|
|
|
|
super(message, cause);
|
|
|
|
setErrorMessage(message);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public OAuthTokenValidationException(String msg) {
|
|
|
|
public OAuthTokenValidationException(String msg) {
|
|
|
|
super(msg);
|
|
|
|
super(msg);
|
|
|
|
setErrorMessage(msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public OAuthTokenValidationException() {
|
|
|
|
public OAuthTokenValidationException() {
|
|
|
@ -45,12 +41,4 @@ public class OAuthTokenValidationException extends Exception {
|
|
|
|
public OAuthTokenValidationException(Throwable cause) {
|
|
|
|
public OAuthTokenValidationException(Throwable cause) {
|
|
|
|
super(cause);
|
|
|
|
super(cause);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public String getErrorMessage() {
|
|
|
|
|
|
|
|
return errMessage;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void setErrorMessage(String errMessage) {
|
|
|
|
|
|
|
|
this.errMessage = errMessage;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|