Skip to content

Include the original firebase exception message #781

Description

@yowaiOtoko

Describe the feature you would like to see

Include the original firebase exception message in exception properties, EMAIL_EXISTS for example. This would enable to handle translation of the error messages based on this key.
The only way right now is to use this bundle english translation as a translation key.
interface FirebaseException extends Throwable { public function getMessageKey(): string; }

trait HasMessageKey
{
    /** @var string */
    protected string $messageKey = '';

    /** @return string */
    public function getMessageKey(): string
    {
        return $this->messageKey;
    }
}

Is this the way to go ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions