Examples of ThrowableMapper


Examples of com.sun.appserv.management.util.misc.ThrowableMapper

        m.put( LOG_RECORD_SOURCE_METHOD_NAME_KEY, record.getSourceMethodName() );
        m.put( LOG_RECORD_THREAD_ID_KEY, record.getThreadID() );
        final Throwable thrown  = record.getThrown();
        if ( thrown != null )
        {
            final Throwable mapped  = new ThrowableMapper( thrown ).map();
            m.put( LOG_RECORD_THROWN_KEY, mapped );
           
            final Throwable rootCause   = ExceptionUtil.getRootCause( thrown );
            if ( rootCause != thrown )
            {
                final Throwable mappedRootCause  = new ThrowableMapper( rootCause ).map();
                m.put( LOG_RECORD_ROOT_CAUSE_KEY, mappedRootCause );
            }
        }
        return m;
    }
View Full Code Here

Examples of com.sun.appserv.management.util.misc.ThrowableMapper

    side.
   */
    private void
  rethrowThrowable( final Throwable t )
  {
    final Throwable  result  = new ThrowableMapper( t ).map();
   
    if ( result instanceof Error )
    {
      throw (Error)result;
    }
View Full Code Here

Examples of com.sun.appserv.management.util.misc.ThrowableMapper

    side.
   */
    private void
  rethrowThrowable( final Throwable t )
  {
    final Throwable  result  = new ThrowableMapper( t ).map();
   
    if ( result instanceof Error )
    {
      throw (Error)result;
    }
View Full Code Here

Examples of com.sun.appserv.management.util.misc.ThrowableMapper

    {
      result  = getAttribute( name );
    }
    catch( Exception e )
    {
      throw new RuntimeException( new ThrowableMapper( e ).map() );
    }
    return( result );
  }
View Full Code Here

Examples of com.sun.appserv.management.util.misc.ThrowableMapper

 
    protected void
  handleException( final Exception e )
    throws MBeanException, ReflectionException
  {
    final ThrowableMapper  mapper  = new ThrowableMapper( e );
    final Throwable      mapped  = mapper.map();
   
    if ( mapped instanceof ReflectionException )
    {
      throw (ReflectionException)mapped;
    }
View Full Code Here

Examples of com.sun.appserv.management.util.misc.ThrowableMapper

      Set the Throwable for the operation, which may be null.
   */
    public void
  setThrowable( final Throwable t)
  {
    final Throwable  conforming  = new ThrowableMapper( t ).map();
   
    putField( THROWABLE_KEY, conforming );
  }
View Full Code Here

Examples of org.glassfish.admin.amx.util.ThrowableMapper

        Object result = null;

        try {
            result = getAttribute(name);
        } catch (Exception e) {
            throw new RuntimeException(new ThrowableMapper(e).map());
        }
        return (result);
    }
View Full Code Here

Examples of org.glassfish.admin.amx.util.ThrowableMapper

        return operationNameMatches(operationName, GET_PREFIX, suffix);
    }

    protected void handleException(final Exception e)
            throws MBeanException, ReflectionException {
        final ThrowableMapper mapper = new ThrowableMapper(e);
        final Throwable mapped = mapper.map();

        if (mapped instanceof ReflectionException) {
            throw (ReflectionException) mapped;
        } else if (mapped instanceof MBeanException) {
            throw (MBeanException) mapped;
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.