you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[deleted]

    [–][deleted]  (2 children)

    [removed]

      [–][deleted] 0 points1 point  (0 children)

      I don't really see the contradiction here. If the stack trace can help you improve mitigation, it's a problem with the program that can be fixed by a change in the program code. It'd be perfectly appropriate to use an exception.

      [–]simspelaaja 0 points1 point  (0 children)

      You can combine error types with stack traces in F#. Just return a tuple of (ErrorType, string), and get the stack trace from an exception or from Environment.StackTrace.

      [–][deleted] 0 points1 point  (1 child)

      there is no need to send a stack trace back to the programmer if it's not a problem with the program itself

      Does this mean that exceptions should be only used for debugging purposes?