Laravel custom exception

clipboard.png

laravel5.2 excel import function

imported excel tables must be cleared before they can be imported normally. If not, this exception will be reported.

how to customize this exception.

Apr.05,2021

try to catch an exception on the line where the import is performed, for example

try{
    //
}catch(ErrorException $e){
    //
}
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eae8a4-21e1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eae8a4-21e1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?