Skip to content

Commit

Permalink
Add dummy .fury file
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Aug 14, 2023
1 parent 672a701 commit bfcf1df
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions .fury
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
ecosystem vent 3 https://github.com/propensive/vent main

command build fulminate/core

project fulminate
name Fulminate
website https://github.com/propensive/fulminate
description Rich and composable error messages

module core
compiler scala
sources src/core
include anticipation/css anticipation/http symbolism/core anticipation/text anticipation/http
1 change: 1 addition & 0 deletions doc/slogan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Rich and composable error messages
5 changes: 3 additions & 2 deletions src/core/exceptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ case class Message(textParts: List[Text], subs: List[Message] = Nil):

recur(string.split("\n").nn.map(_.nn).to(List), false)

transparent abstract class Error(val message: Message, private val cause: Error | Null = null)
extends Exception():
transparent abstract class Error
(val message: Message, private val cause: Error | Null = null, hideStack: Boolean = false)
extends Exception(message.text.s, cause, false, !hideStack):
this: Error =>
def fullClass: List[Text] = List(getClass.nn.getName.nn.split("\\.").nn.map(_.nn).map(Text(_))*)
def className: Text = fullClass.last
Expand Down

0 comments on commit bfcf1df

Please sign in to comment.