Understanding `Effect.dieMessage` vs `Effect.die` in ZIO
What is the difference between
"Returns an effect that dies with a RuntimeException having the specified text message. This method can be used for terminating a fiber because a defect has been detected in the code."
But I need some more help understanding what that actually means if someone would be so kind to help explain?
Effect.dieMessage("some message") and Effect.die("Some message"). the dieMessage docs say:"Returns an effect that dies with a RuntimeException having the specified text message. This method can be used for terminating a fiber because a defect has been detected in the code."
But I need some more help understanding what that actually means if someone would be so kind to help explain?
