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
class UserNotFoundException extends RuntimeException
{
publicstaticfunctionforUserId(string$userId) : self
{
returnnewself(sprintf(
'User with the ID: %s does not exist',
$userId
));
}
}
在使用该方法 UserNotFoundException::forUserId(1); 时Exception抛出的line 是当前这个public static function forUserId 所在的行.不是我逻辑调用的时的行.这如何处理.
The text was updated successfully, but these errors were encountered:
在使用该方法 UserNotFoundException::forUserId(1); 时Exception抛出的line 是当前这个public static function forUserId 所在的行.不是我逻辑调用的时的行.这如何处理.
The text was updated successfully, but these errors were encountered: