Skip to content

Commit

Permalink
Tightened down Violation base trait to support exhaustiveness checks …
Browse files Browse the repository at this point in the history
…in client code (closes #45)
  • Loading branch information
holograph committed Jul 19, 2015
1 parent d4bf06c commit b293e20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main/scala/com/wix/accord/Result.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
package com.wix.accord

/** A base trait for all violation types. */
trait Violation {
sealed trait Violation {
/** The actual runtime value of the object under validation. */
def value: Any
/** A textual description of the constraint being violated (for example, "must not be empty"). */
Expand Down

0 comments on commit b293e20

Please sign in to comment.