public static function exceptionDataProvider(): iterable
{ yield 'CONTENT__IMPORT_EXPORT_FILE_INVALID_ACCESS_TOKEN' =>
[ 'exception' => ImportExportException::
invalidFileAccessToken(),
'statusCode' => Response::HTTP_BAD_REQUEST,
'errorCode' => 'CONTENT__IMPORT_EXPORT_FILE_INVALID_ACCESS_TOKEN',
'message' => 'Access to file denied due to invalid access token',
];
yield 'CONTENT__IMPORT_EXPORT_FILE_NOT_FOUND' =>
[ 'exception' => ImportExportException::
fileNotFound('notFoundFile'
),
'statusCode' => Response::HTTP_NOT_FOUND,
'errorCode' => 'CONTENT__IMPORT_EXPORT_FILE_NOT_FOUND',
'message' => 'Cannot find import/export file with id notFoundFile',
];
yield 'CONTENT__IMPORT_EXPORT_PROCESSING_EXCEPTION' =>
[ 'exception' => ImportExportException::
processingError('Cannot merge file'
),
'statusCode' => Response::HTTP_INTERNAL_SERVER_ERROR,
'errorCode' => 'CONTENT__IMPORT_EXPORT_PROCESSING_EXCEPTION',
'message' => 'Cannot merge file',
];