Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
maneeshaindrachapa
committed
Sep 3, 2021
1 parent
7d7f564
commit 5b6b729
Showing
3 changed files
with
164 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
...org/wso2/carbon/extension/identity/emailotp/common/exception/EmailOtpClientException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* | ||
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.wso2.carbon.extension.identity.emailotp.common.exception; | ||
|
||
/** | ||
* EMAIL OTP client exception | ||
*/ | ||
public class EmailOtpClientException extends EmailOtpException { | ||
|
||
public EmailOtpClientException(String errorCode, String message) { | ||
|
||
super(errorCode, message); | ||
} | ||
|
||
public EmailOtpClientException(String errorCode, String message, Throwable throwable) { | ||
|
||
super(errorCode, message, throwable); | ||
} | ||
|
||
public EmailOtpClientException(String message, String description, String errorCode) { | ||
|
||
super(message, description, errorCode); | ||
} | ||
|
||
public EmailOtpClientException(String message, String description, String errorCode, Throwable e) { | ||
|
||
super(message, description, errorCode, e); | ||
} | ||
|
||
} |
77 changes: 77 additions & 0 deletions
77
.../java/org/wso2/carbon/extension/identity/emailotp/common/exception/EmailOtpException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
/* | ||
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.wso2.carbon.extension.identity.emailotp.common.exception; | ||
|
||
import org.wso2.carbon.identity.event.IdentityEventException; | ||
|
||
/** | ||
* EMAIL OTP exception. | ||
*/ | ||
public class EmailOtpException extends IdentityEventException { | ||
|
||
private String errorCode; | ||
private String description; | ||
|
||
public EmailOtpException(String errorCode, String message) { | ||
|
||
super(errorCode, message); | ||
this.errorCode = errorCode; | ||
} | ||
|
||
public EmailOtpException(String errorCode, String message, Throwable throwable) { | ||
|
||
super(errorCode, message, throwable); | ||
this.errorCode = errorCode; | ||
} | ||
|
||
public EmailOtpException(String message, String description, String errorCode) { | ||
|
||
super(message); | ||
this.errorCode = errorCode; | ||
this.description = description; | ||
} | ||
|
||
public EmailOtpException(String message, String description, String errorCode, Throwable e) { | ||
|
||
super(message, e); | ||
this.errorCode = errorCode; | ||
this.description = description; | ||
} | ||
|
||
@Override | ||
public String getErrorCode() { | ||
|
||
return errorCode; | ||
} | ||
|
||
@Override | ||
public void setErrorCode(String errorCode) { | ||
|
||
this.errorCode = errorCode; | ||
} | ||
|
||
public String getDescription() { | ||
|
||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
|
||
this.description = description; | ||
} | ||
|
||
} |
43 changes: 43 additions & 0 deletions
43
...org/wso2/carbon/extension/identity/emailotp/common/exception/EmailOtpServerException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* Copyright (c) 2021, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.wso2.carbon.extension.identity.emailotp.common.exception; | ||
|
||
/** | ||
* EMAIL OTP server exception | ||
*/ | ||
public class EmailOtpServerException extends EmailOtpException { | ||
|
||
public EmailOtpServerException(String errorCode, String message) { | ||
|
||
super(errorCode, message); | ||
} | ||
|
||
public EmailOtpServerException(String errorCode, String message, Throwable throwable) { | ||
|
||
super(errorCode, message, throwable); | ||
} | ||
|
||
public EmailOtpServerException(String message, String description, String errorCode) { | ||
|
||
super(message, description, errorCode); | ||
} | ||
|
||
public EmailOtpServerException(String message, String description, String errorCode, Throwable e) { | ||
|
||
super(message, description, errorCode, e); | ||
} | ||
} |