Package com.sun.appserv.management.util.misc

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


    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

    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

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

 
    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

      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

TOP

Related Classes of com.sun.appserv.management.util.misc.ThrowableMapper

Copyright © 2018 www.massapicom. 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.