Skip to content

Iron v1.1

Compare
Choose a tag to compare
@Iltotore Iltotore released this 26 Jul 08:55
· 248 commits to main since this release
dc9435a

Introduction

This release is a continuation of Iron v1.0 improving error handling and global ecosystem.

Features

Better error handling

  • Add IllegalValueError.Field, a field-based IllegalValueError.
  • Errors now have a message instead of a constraint instance.
  • Each constraint must have a description by overriding Constraint#getMessage
  • You can attach a custom description to an existing constraint using DescribedAs[B, V]. See the wiki
  • Accumulative Error Handling via Cats. See the Extra Modules section below.

Extra Modules

Fixes

  • Alphanumeric now matches upper-cased characters

Example

An example project is now available. Further details in future articles.