const ( // The size of the stack trace buffer for reading. Stack traces will not be // longer than this. StackTraceSize = 4096 )
New returns a new Error. If err is already a errstack.Error, it's a no-op.
Newf creates a new Error.
Error wraps an error and attaches the stack trace at the moment of emission.
Error returns the error string