# BuildException.php

BuildException is for when things go wrong in a build execution.

Author
  Andreas Aderhold
Package
  phing
Version
  $Revision: 552 $

## \BuildException
jump to top

Package: phing

BuildException is for when things go wrong in a build execution.

Parent(s)
  \Exception
Children
  \ExpatParseException
Author
  Andreas Aderhold
Version
  $Revision: 552 $

### Properties

`\Exception $cause= ''`

The nested "cause" exception.

Details

Type
  \Exception

`\Location $location= ''`

Location in the xml file.

Details

Type
  \Location

### Methods

`__construct( $p1, $p2 = null, $p3 = null ) : void`

Construct a BuildException.

Supported signatures: throw new BuildException($causeExc); throw new BuildException($msg); throw new Buildexception($causeExc, $loc); throw new BuildException($msg, $causeExc); throw new BuildException($msg, $loc); throw new BuildException($msg, $causeExc, $loc);

Parameters

Name | Type | Description
--- | --- | ---
$p1 |  |
$p2 |  |
$p3 |  |

`__toString( ) : void`

`getCause( ) : \Exception`

Gets the cause exception.

Returns

Type | Description
--- | ---
\Exception |

`getCode( ) : void`
final

`getFile( ) : void`
final

`getLine( ) : void`
final

`getLocation( ) : \Location`

Gets the location of error in XML file.

Returns

Type | Description
--- | ---
\Location |

`getMessage( ) : void`
final

`getPrevious( ) : void`
final

`getTrace( ) : void`
final

`getTraceAsString( ) : void`
final

`setLocation( \Locaiton $loc ) : void`

Sets the location of error in XML file.

Parameters

Name | Type | Description
--- | --- | ---
$loc | \Locaiton |

Documentation was generated by DocBlox 0.17.1.