public static function throwGlobal( $releaseOnThrow = false, $template = null ) {
    if( ! empty( DeferredExceptionsGlobal::$defExcErrorsGlobal )) {
        $message = "There are the following exceptions:\n";
        foreach( DeferredExceptionsGlobal::$defExcErrorsGlobal as $error) {
          $message .= self::__formatMessage( $error, $template ) . "\n";
        }
        if( $releaseOnThrow ){
          DeferredExceptionsGlobal::$defExcErrorsGlobal = [];
        }
        $result = count( DeferredExceptionsGlobal::$defExcErrorsGlobal );
        throw new DeferredExceptionsException( $message );
    }
    return false;
  }