Zoom_Helpers::check_for_errors( $response )

check_for_errors

Contents


Return Return

(void)


Source Source

File: src/integrations/zoom/helpers/zoom-helpers.php

	public function check_for_errors( $response ) {
		$error = '';
		if ( isset( $response['data']['message'] ) ) {
			$error = $response['data']['message'];
		}
		if ( ! empty( $error ) ) {
			throw new \Exception( $error, $response['statusCode'] );
		}
	}