TlsError.this

this(TlsErrorCode code, string msg, string file = __FILE__, size_t line = __LINE__) pure nothrow @safe

Construct a TlsError with the given code and message.

Parameters

codeThe TLS error code identifying the failure type.
msgThe error message describing what went wrong.
fileSource file where the error originated.
lineLine number where the error originated.
this(string msg, string file = __FILE__, size_t line = __LINE__) pure nothrow @safe

Construct a TlsError with just a message (defaults to INTERNAL_ERROR).

Parameters

msgThe error message describing what went wrong.
fileSource file where the error originated.
lineLine number where the error originated.