Skip to content

Throwing exceptions without descriptions #408

Closed
@TonyMarston

Description

@TonyMarston

Is your feature request related to a problem? Please describe.
After connecting to a mailbox and then attempting to call $client->getFolder('INBOX') I get the following error:
Uncaught exception from Webklex\PHPIMAP\Exceptions\ImapServerErrorException in vendor\webklex\php-imap\src\Connection\Protocols\ImapProtocol.php, line=306. I stopped at than line with my debugger to see the contents of $tokens contained the message "BAD User is authenticated but not connected." This is FAR more meaningful than simply the name of the exception.

Describe the solution you'd like
I consider it to be bad form to throw an exception without an error description. Please include proper descriptions when throwing errors as I HATE having to debug somebody else's code.

Describe alternatives you've considered
none

Additional context
none

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions