Skip to content

Commit

Permalink
Add DecoderError for unsupported schemas (#583)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Vigovszky <[email protected]>
  • Loading branch information
987Nabil and vigoo authored Sep 5, 2023
1 parent bc2c20e commit 7f1926a
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 7f1926a

Please sign in to comment.