-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update kotlin - code enhancements
- Loading branch information
Showing
7 changed files
with
19 additions
and
58 deletions.
There are no files selected for viewing
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
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
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
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
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
8 changes: 5 additions & 3 deletions
8
didpeer/src/commonMain/kotlin/io.iohk.atala.prism.didcomm.didpeer/Exceptions.kt
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 |
---|---|---|
@@ -1,26 +1,28 @@ | ||
package io.iohk.atala.prism.didcomm.didpeer | ||
|
||
import kotlin.jvm.JvmOverloads | ||
|
||
/** | ||
* The base class for all PeerDID errors and exceptions. | ||
* | ||
* @param message - the detail message. | ||
* @param cause - the cause of this. | ||
*/ | ||
open class PeerDIDException(message: String, cause: Throwable? = null) : Throwable(message, cause) | ||
open class PeerDIDException @JvmOverloads constructor(message: String, cause: Throwable? = null) : Throwable(message, cause) | ||
|
||
/** | ||
* Raised if the peer DID to be resolved in not a valid peer DID. | ||
* | ||
* @param message - the detail message. | ||
* @param cause - the cause of this. | ||
*/ | ||
class MalformedPeerDIDException(message: String, cause: Throwable? = null) : | ||
class MalformedPeerDIDException @JvmOverloads constructor(message: String, cause: Throwable? = null) : | ||
PeerDIDException("Invalid peer DID provided. $message", cause) | ||
|
||
/** | ||
* Raised if the resolved peer DID Doc to be resolved in not a valid peer DID. | ||
* | ||
* @param cause - the cause of this. | ||
*/ | ||
class MalformedPeerDIDDOcException(cause: Throwable? = null) : | ||
class MalformedPeerDIDDOcException @JvmOverloads constructor(cause: Throwable? = null) : | ||
PeerDIDException("Invalid peer DID Doc", cause) |
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