generated from okp4/template-rust
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dataverse): add dedicated errors to credentials
- Loading branch information
Showing
4 changed files
with
80 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use thiserror::Error; | ||
|
||
#[derive(Error, Debug, PartialEq)] | ||
pub enum InvalidCredentialError { | ||
#[error("Missing identifier")] | ||
MissingIdentifier, | ||
|
||
#[error("Missing issuer")] | ||
MissingIssuer, | ||
|
||
#[error("Missing issuance date")] | ||
MissingIssuanceDate, | ||
|
||
#[error("Missing proof")] | ||
MissingProof, | ||
|
||
#[error("Missing proof type")] | ||
MissingProofType, | ||
|
||
#[error("Malformed: {0}")] | ||
Malformed(String), | ||
} |
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,3 +1,4 @@ | ||
mod error; | ||
mod proof; | ||
mod rdf_markers; | ||
mod vc; |
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