Skip to content

Commit

Permalink
Provide a Realm for fail messages
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Feb 19, 2024
1 parent 11643e7 commit ca211bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/math.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ import language.experimental.genericNumberLiterals
import java.lang.{Integer as JInt, Long as JLong, Short as JShort, Byte as JByte, Double as JDouble,
Float as JFloat}

given Realm = realm"hypotenuse"

case class OverflowError() extends Error(msg"an overflow error occurred")
case class DivisionError() extends Error(msg"the result is unrepresentable")

Expand Down

0 comments on commit ca211bb

Please sign in to comment.