Skip to content

Commit

Permalink
Add DecoderError for unsupported schemas
Browse files Browse the repository at this point in the history
  • Loading branch information
987Nabil committed Jul 10, 2023
1 parent 651ad37 commit e36c989
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,8 @@ object DecodeError {
def message: String = s"Value $values and $structure have incompatible shape"
}

final case class UnsupportedSchema(schema: Schema[_], decoderName: String) extends DecodeError {
def message: String = s"Schema $schema is not supported by $decoderName"
}

}

0 comments on commit e36c989

Please sign in to comment.