ErrorReporting

org.http4s.testing.ErrorReporting

Attributes

Source
ErrorReporting.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def catchSystemErr(thunk: => Unit): String

Catches System.err output, for testing purposes.

Catches System.err output, for testing purposes.

Attributes

Source
ErrorReporting.scala
def silenceOutputStreams[R](thunk: => R): R

Silences System.out and System.err streams for the duration of thunk.

Silences System.out and System.err streams for the duration of thunk. Restores the original streams before exiting.

Attributes

Source
ErrorReporting.scala
def silenceSystemErr[A](thunk: => A): A

Silences System.err, only printing the output in case exceptions are thrown by the executed thunk.

Silences System.err, only printing the output in case exceptions are thrown by the executed thunk.

Attributes

Source
ErrorReporting.scala
def silentErrorHandler[F[_], G[_]](implicit F: Monad[F]): (Request[F]) => PartialFunction[Throwable, F[Response[G]]]

Returns an ErrorHandler that does not log

Returns an ErrorHandler that does not log

Attributes

Source
ErrorReporting.scala