Skip to content

Commit 9a2cf4d

Browse files
committed
add RuleViolation to DomainError
1 parent 5c444ff commit 9a2cf4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

primitives/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ pub use self::validator::ValidatorDesc;
3131
//pub use self::repository::*;
3232
pub use self::targeting_tag::TargetingTag;
3333

34-
#[derive(Debug)]
34+
#[derive(Debug, PartialEq, Eq)]
3535
pub enum DomainError {
3636
InvalidArgument(String),
37+
RuleViolation(String),
3738
}
3839

3940
impl fmt::Display for DomainError {

0 commit comments

Comments
 (0)