public static function exceptionDataProvider(): iterable
{ yield SalesChannelException::SALES_CHANNEL_LANGUAGE_NOT_AVAILABLE_EXCEPTION =>
[ 'exception' => SalesChannelException::
providedLanguageNotAvailable('myCustomScn',
['scn1', 'scn2'
]),
'statusCode' => Response::HTTP_PRECONDITION_FAILED,
'errorCode' => SalesChannelException::SALES_CHANNEL_LANGUAGE_NOT_AVAILABLE_EXCEPTION,
'message' => 'Provided language "myCustomScn" is not in list of available languages: scn1, scn2',
];
yield SalesChannelException::SALES_CHANNEL_DOES_NOT_EXISTS_EXCEPTION =>
[ 'exception' => SalesChannelException::
salesChannelNotFound('myCustomScn'
),
'statusCode' => Response::HTTP_NOT_FOUND,
'errorCode' => SalesChannelException::SALES_CHANNEL_DOES_NOT_EXISTS_EXCEPTION,
'message' => 'Sales channel with id "myCustomScn" not found or not valid!.',
];
yield SalesChannelException::LANGUAGE_INVALID_EXCEPTION =>
[ 'exception' => SalesChannelException::
invalidLanguageId(),
'statusCode' => Response::HTTP_PRECONDITION_FAILED,
'errorCode' => SalesChannelException::LANGUAGE_INVALID_EXCEPTION,
'message' => 'Provided languageId is not a valid uuid',
];