Skip to content

atamurius/error-handling-banchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Error handling options benchmark

Sample implementations of different error handling approaches:

  • ThrowParser: exception throwing
  • TryParser: exception packing into Try[T]
  • EitherParser: error handling as Either[String, T]
  • ValidatedParser: using cats Validated for collecting as much errors as possible (non-fail-fast)

Problem

Problem here is data conversion and validation. Each implementation is a PersonParser that converts Map[String, String] into Person(String, Int, Boolean) or error.

About

Scala Error Handling options benchmark

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages