Open g105b opened 11 months ago
Each page should be able to have its own error() function alongside go and do.
error()
go
do
The same goes for the _common page.
_common
Then there should be individual files in page/_error:
page/_error
Then we'll be able to have the following scenario:
function go(ShopItem $item)
ShopItem
ServiceLoader
DynamicPath
ShopItemNotFoundException
error(Throwable $reason)
page/_error/@errorCode.html
Each page should be able to have its own
error()
function alongsidego
anddo
.The same goes for the
_common
page.Then there should be individual files in
page/_error
:Then we'll be able to have the following scenario:
go
function likefunction go(ShopItem $item)
ShopItem
is loaded in theServiceLoader
according to theDynamicPath
ShopItem
for the currentDynamicPath
ServiceLoader
throws aShopItemNotFoundException
error(Throwable $reason)
function is calledpage/_error/@errorCode.html
is displayed