error_code

Get error code

Returns the error code as a string (e.g., “TypeError”, “ValueError”).

Parameters

Returns

The error code as a string.