CBPRestActivity::HandleFault: Bitrix method

      
<?php 
//  CBPRestActivity :: HandleFault()
//  /dist/bitrix/modules/bizproc/classes/general/restactivity.php:325

    
public function HandleFault(Exception $exception)
    {
        if (
$exception == null)
            throw new 
Exception("exception");

        
$status $this->Cancel();
        if (
$status == CBPActivityExecutionStatus::Canceling)
            return 
CBPActivityExecutionStatus::Faulting;

        return 
$status;
    }