src/Pel.php
public static function maybeThrow(PelException $e)
    {
        if (self::$strict) {
            throw $e;
        } else {
            self::$exceptions[] = $e;
            self::warning('%s (%s:%s)', $e->getMessage(), basename($e->getFile()), $e->getLine());
        }
    }
public static function maybeThrow(PelException $e)
    {
        if (self::$strict) {
            throw $e;
        } else {
            self::$exceptions[] = $e;
            self::warning('%s (%s:%s)', $e->getMessage(), basename($e->getFile()), $e->getLine());
        }
    }
public static function maybeThrow ( PelException $ e ) { if ( self :: $ strict ) { throw $ e ; } else { self :: $ exceptions [ ] = $ e ; self :: warning ( '%s (%s:%s)' , $ e -> getMessage ( ) , basename ( $ e -> getFile ( ) ) , $ e -> getLine ( ) ) ; } }
Conditionally throw an exception.

This method will throw the passed exception when strict parsing
in effect (see {@link setStrictParsing()}). Otherwise the
exception is stored (it can be accessed with {@link
getExceptions()}) and a warning is issued (with {@link
Pel::warning}).

@param PelException $e
the exceptions.
Conditionally throw an exception .