ErrorCall -package:gi-gtk

This is thrown when the user calls error. The String is the argument given to error. Historically, there was a second String for the location, but it was subsumed by the backtrace mechanisms (since base-4.22).
This is thrown when the user calls error. The first String is the argument given to error, second String is the location.
This is thrown when the user calls error. The first String is the argument given to error, second String is the location.
Deprecated: ErrorCallWithLocation has been deprecated in favour of ErrorCall (which does not have a location). Backtraces are now handled by the backtrace exception mechanisms exclusively.
The error code and also a human-readable error message.
Add a callback for errors.

Examples

Basic usage:
'setCallback' ('errorCallback' myErrorCallback)

myErrorCallback :: 'KafkaError' -> String -> IO ()
myErrorCallback kafkaError message = print $ show kafkaError <> "|" <> message
An orphan Eq instance for ErrorCall
This is thrown when the user calls error.
Retrieve the argument given to error. ErrorCall is isomorphic to a String.
>>> catching _ErrorCall (error "touch down!") return
"touch down!"
_ErrorCall :: Prism' ErrorCall     String
_ErrorCall :: Prism' SomeException String
Can (and probably should) be used before GLFW initialization. See glfwSetErrorCallback