diff --git a/zio-schema/shared/src/main/scala/zio/schema/codec/DecodeError.scala b/zio-schema/shared/src/main/scala/zio/schema/codec/DecodeError.scala index 2189922ef..e16677ac0 100644 --- a/zio-schema/shared/src/main/scala/zio/schema/codec/DecodeError.scala +++ b/zio-schema/shared/src/main/scala/zio/schema/codec/DecodeError.scala @@ -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" + } + }