Hello to everyone,
I will ask an easy question. I use throw to give an error message when I write custom functions. But I want to send it as a notification. I mean, I do not want you to fall into log records.
I am sending notifications as an error. This is not a good thing.
My method;
What I'm looking for like this;
Thank you.
I will ask an easy question. I use throw to give an error message when I write custom functions. But I want to send it as a notification. I mean, I do not want you to fall into log records.
I am sending notifications as an error. This is not a good thing.
My method;
Code:
throw new Error('Error Message.',400);
Code:
$this->sendNotification($state, $message);
Comment