|
|
|
@ -313,6 +313,7 @@ class EventCalendarController extends BaseController |
|
|
|
* @param string $id |
|
|
|
* @return JsonResponse |
|
|
|
* @throws ValidationException |
|
|
|
* @throws CustomException |
|
|
|
*/ |
|
|
|
public function end(string $id): JsonResponse |
|
|
|
{ |
|
|
|
@ -323,12 +324,11 @@ class EventCalendarController extends BaseController |
|
|
|
null, |
|
|
|
__('exception.event_calendar.end_succeeded') |
|
|
|
); |
|
|
|
} catch (ValidationException $e) { |
|
|
|
} catch (ValidationException|CustomException $e) { |
|
|
|
throw $e; |
|
|
|
} catch (Exception $e) { |
|
|
|
return $this->responseService->systemError( |
|
|
|
__('exception.event_calendar.end_failed') . ':' |
|
|
|
. $e->getMessage() |
|
|
|
__('exception.event_calendar.end_failed') |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|