* @package phpcr */ class RepositoryException extends Exception { /** * Constructs a new instance of this class. */ public function __construct() { $args = func_get_args(); $msg = null; $ex = null; if ( count( $args ) ) { if ( is_string( $args[0] ) && isset( $args[1] ) ) { if ( $args[1] instanceof Exception ) { $ex = $args[1]; } } else if ( $args[0] instanceof Exception ) { $ex = $args[0]; } if ( isset( $ex ) ) { $msg .= $ex->getMessage(); } if ( is_string( $args[0] ) ) { $msg .= ' (' . $args[0] . ')'; } parent::__construct( $msg ); } } } ?>