Phpro\SoapClient\Exception\AssemblerException::fromException PHP Method

fromException() public static method

public static fromException ( Exception $e ) : AssemblerException
$e Exception
return AssemblerException
    public static function fromException(\Exception $e)
    {
        return new self($e->getMessage(), $e->getCode(), $e);
    }

Usage Example

Beispiel #1
0
 /**
  * @param ContextInterface|TypeContext $context
  *
  * @throws AssemblerException
  */
 public function assemble(ContextInterface $context)
 {
     try {
         $interfaceAssembler = new InterfaceAssembler(RequestInterface::class);
         if ($interfaceAssembler->canAssemble($context)) {
             $interfaceAssembler->assemble($context);
         }
     } catch (\Exception $e) {
         throw AssemblerException::fromException($e);
     }
 }
All Usage Examples Of Phpro\SoapClient\Exception\AssemblerException::fromException
AssemblerException