These are chat archives for etorreborre/specs2

Jul 2016
Adelbert Chang
Jul 27 2016 18:54
if i have something like case class FooException(i: Int, msg: String) extends Exception(/* some string containing i and msg */)
is there a way to match against an (expect to) failed Future with a specific instantiation of FooException ?
something like
f must throwA[FooException](FooException(5, _)) ?
i want to make sure the exception message contains both the int and the string message
Adelbert Chang
Jul 27 2016 19:00
oh you can just do throwA(FooException(5, msg))