You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be a good if there was a flag to control the concatenation of exception messages in case when I want to display real exception message for users insead of message + stack trace as a string. Please add the ability to remove a stack trace in exceptions.
For example I faced with this: "ORA-20029: ORA-06508: PL/SQL: could not find program unit being called
#0 /var/www/claim/app/Traits/EsbdEntry.php(306): App\Repositories\Api\EsbdRepository->set() #1 /var/www/claim/app/Traits/EsbdEntry.php(86): App\Tasks\SetClaimTask->setEsbdMethod() #2 /var/www/claim/app/Tasks/SetClaimTask.php(157): App\Tasks\SetClaimTask->setVictimObjectsEsbd() #3 /var/www/claim/vendor/spatie/async/src/Task.php(15): App\Tasks\SetClaimTask->run() #4 /var/www/claim/vendor/spatie/async/src/Runtime/ChildRuntime.php(26): Spatie\Async\Task->__invoke() #5 {main}".
But actually I need only real message without stack trace - "ORA-20029: ORA-06508: PL/SQL: could not find program unit being called"
The code which is doing concatenation is in "vendor/spatie/async/src/Output/SerializableException.php:29" - $throwable = new $this->class($this->message."\n\n".$this->trace);
Now, I did a temporary solution for that by splitting a string by "\n\n".
It would be a good if there was a flag to control the concatenation of exception messages in case when I want to display real exception message for users insead of message + stack trace as a string. Please add the ability to remove a stack trace in exceptions.
For example I faced with this: "ORA-20029: ORA-06508: PL/SQL: could not find program unit being called
#0 /var/www/claim/app/Traits/EsbdEntry.php(306): App\Repositories\Api\EsbdRepository->set()
#1 /var/www/claim/app/Traits/EsbdEntry.php(86): App\Tasks\SetClaimTask->setEsbdMethod()
#2 /var/www/claim/app/Tasks/SetClaimTask.php(157): App\Tasks\SetClaimTask->setVictimObjectsEsbd()
#3 /var/www/claim/vendor/spatie/async/src/Task.php(15): App\Tasks\SetClaimTask->run()
#4 /var/www/claim/vendor/spatie/async/src/Runtime/ChildRuntime.php(26): Spatie\Async\Task->__invoke()
#5 {main}".
But actually I need only real message without stack trace - "ORA-20029: ORA-06508: PL/SQL: could not find program unit being called"
The code which is doing concatenation is in "vendor/spatie/async/src/Output/SerializableException.php:29" -
$throwable = new $this->class($this->message."\n\n".$this->trace);
Now, I did a temporary solution for that by splitting a string by "\n\n".
$message = $exception->getMessage();
$pos = strpos($message, "\n\n");
The text was updated successfully, but these errors were encountered: