Add constraint
method to DatabaseError
trait
#998
Merged
constraint
method to DatabaseError
trait
#998