Skip to content

What am I doing wrong here with my errorHandler? #511

Answered by johanalkstal
johanalkstal asked this question in Q&A
Discussion options

You must be logged in to vote

The answer is to change to this,

let errorHandler (ex : exn) (logger : ILogger)

exn is an abbreviation for the CLI type System.Exception.

I don't know why it wasn't possible to just use System.Exception directly but I'm sure there's a good reason for that.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by johanalkstal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant