문제

In Magento 2.3, How to add custom error code along with response. For example, If I add the code as below, I am getting this below response:

throw new InvalidEmailOrPasswordException(__('Invalid login or password.'), null, 900)

"message": "Invalid login or password.",
    "code": 900,
    "trace": "#0 [internal function]

But this is only accepting integer(900), not any characters. Is any poosibility to add this characters in the code. Thanks in Advance.

올바른 솔루션이 없습니다

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 magento.stackexchange
scroll top