Perforce Chronicle 2012.2/486814
API Documentation

P4_Connection_ConflictException Class Reference

Exception to be thrown when a resolve error occurs. More...

Inheritance diagram for P4_Connection_ConflictException:
P4_Connection_CommandException

List of all members.

Public Member Functions

 getChange ()
 Returns a P4_Change object for the changelist the conflict files live in.

Detailed Description

Exception to be thrown when a resolve error occurs.

Holds the associated Connection instance and result object.

Copyright:
2011-2012 Perforce Software. All rights reserved
License:
Please see LICENSE.txt in top-level folder of this distribution.
Version:
2012.2/486814

Member Function Documentation

P4_Connection_ConflictException::getChange ( )

Returns a P4_Change object for the changelist the conflict files live in.

    {
        preg_match(
            '/submit -c ([0-9]+)/',
            implode($this->getResult()->getErrors()),
            $matches
        );
        
        return P4_Change::fetch($matches[1], $this->getConnection());
    }

The documentation for this class was generated from the following file: