Examples of ExceptionAnalyzer


Examples of bitronix.tm.utils.ExceptionAnalyzer

    /**
     * Create the exception analyzer.
     * @return the exception analyzer.
     */
   public static ExceptionAnalyzer getExceptionAnalyzer() {
        ExceptionAnalyzer analyzer = exceptionAnalyzerRef.get();
        if (analyzer == null) {
            String exceptionAnalyzerName = getConfiguration().getExceptionAnalyzer();
            analyzer = new DefaultExceptionAnalyzer();
            if (exceptionAnalyzerName != null) {
                try {
                    analyzer = (ExceptionAnalyzer) ClassLoaderUtils.loadClass(exceptionAnalyzerName).newInstance();
                } catch (Exception ex) {
                    log.warn("failed to initialize custom exception analyzer, using default one instead", ex);
                }
            }
            if (!exceptionAnalyzerRef.compareAndSet(null, analyzer)) {
                analyzer.shutdown();
                analyzer = exceptionAnalyzerRef.get();
            }
        }
        return analyzer;
    }
View Full Code Here

Examples of org.apache.tapestry.util.exception.ExceptionAnalyzer

                + _sessionId
                + "\n  Client address: "
                + _clientAddress
                + "\n\nExceptions:\n");

        new ExceptionAnalyzer().reportException(ex, System.err);

        System.err.println("\n**********************************************************\n");

    }
View Full Code Here

Examples of org.apache.tapestry.util.exception.ExceptionAnalyzer

    return _exceptions;
  }

  public void setException(Throwable value)
  {
    ExceptionAnalyzer analyzer;

    analyzer = new ExceptionAnalyzer();

    _exceptions = analyzer.analyze(value);
  }
View Full Code Here

Examples of org.apache.tapestry.util.exception.ExceptionAnalyzer

    protected void show(Exception ex)
    {
        System.err.println("\n\n**********************************************************\n\n");

        new ExceptionAnalyzer().reportException(ex, System.err);

        System.err.println("\n**********************************************************\n");

    }
View Full Code Here

Examples of org.apache.tapestry.util.exception.ExceptionAnalyzer

        return _exceptions;
    }

    public void setException(Throwable value)
    {
        ExceptionAnalyzer analyzer;

        analyzer = new ExceptionAnalyzer();

        _exceptions = analyzer.analyze(value);
    }
View Full Code Here

Examples of org.apache.tapestry.util.exception.ExceptionAnalyzer

    protected void show(Exception ex)
    {
        System.err.println("\n\n**********************************************************\n\n");

        new ExceptionAnalyzer().reportException(ex, System.err);

        System.err.println("\n**********************************************************\n");

    }
View Full Code Here

Examples of org.apache.tapestry.util.exception.ExceptionAnalyzer

                + _sessionId
                + "\n  Client address: "
                + _clientAddress
                + "\n\nExceptions:\n");

        new ExceptionAnalyzer().reportException(ex, System.err);

        System.err.println("\n**********************************************************\n");

    }
View Full Code Here

Examples of org.apache.tapestry.util.exception.ExceptionAnalyzer

    protected void show(Exception ex)
    {
        System.err.println("\n\n**********************************************************\n\n");

        new ExceptionAnalyzer().reportException(ex, System.err);

        System.err.println("\n**********************************************************\n");

    }
View Full Code Here

Examples of org.apache.tapestry.util.exception.ExceptionAnalyzer

    /** Transient property. */
    public abstract void setExceptions(ExceptionDescription[] exceptions);

    public void setException(Throwable value)
    {
        ExceptionAnalyzer analyzer = new ExceptionAnalyzer();

        ExceptionDescription[] exceptions = analyzer.analyze(value);

        setExceptions(exceptions);
    }
View Full Code Here

Examples of org.apache.tapestry.util.exception.ExceptionAnalyzer

        if (session != null)
            System.err.println("      Session id    : " + session.getId());

        System.err.println("\nExceptions:\n");

        new ExceptionAnalyzer().reportException(cause, System.err);

        System.err
                .println("\n**********************************************************\n");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.