modules/acm_sku/src/Plugin/rest/resource/ProductSyncResource.php
public function errorHandler(int $error_number, string $error_message) {
    switch ($error_number) {
      case E_RECOVERABLE_ERROR:
        throw new Exception($error_message, $error_number);
    }
  }
public function errorHandler(int $error_number, string $error_message) {
    switch ($error_number) {
      case E_RECOVERABLE_ERROR:
        throw new Exception($error_message, $error_number);
    }
  }
public function errorHandler ( int $ error_number , string $ error_message ) { switch ( $ error_number ) { case E_RECOVERABLE_ERROR : throw new Exception ( $ error_message , $ error_number ) ; } }
Custom error handler that converts E_RECOVERABLE_ERROR into an exception.

@param int $error_number
The error number.
@param string $error_message
The error message.

@throws \Exception
Custom error handler that converts E_RECOVERABLE_ERROR into an exception .