NetKernel APIs


com.ten60.netkernel.urii.aspect
Class NetKernelExceptionAspect

java.lang.Object
  extended bycom.ten60.netkernel.urii.aspect.NetKernelExceptionAspect
All Implemented Interfaces:
IAspectBinaryStream, IAspectNetKernelException, IURAspect

public class NetKernelExceptionAspect
extends Object
implements IAspectNetKernelException, IAspectBinaryStream

Implementation of an aspect that implements IAspectNetKernelException and IRepresentationBinaryStream


Method Summary
static IURRepresentation create(NetKernelError aError)
          Create a new representation to hold and exception
static IURRepresentation create(NetKernelException aException)
          Create a new representation to hold and exception
 String getEncoding()
           
 NetKernelError getError()
          Return the error
 NetKernelException getException()
          Return the exception
 IXMLException getXMLException()
          Return the IXMLException we are holding
 void write(OutputStream aStream)
          Write the exception as XML to the outputstream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getException

public NetKernelException getException()
Return the exception

Specified by:
getException in interface IAspectNetKernelException

getError

public NetKernelError getError()
Return the error

Specified by:
getError in interface IAspectNetKernelException

getXMLException

public IXMLException getXMLException()
Description copied from interface: IAspectNetKernelException
Return the IXMLException we are holding

Specified by:
getXMLException in interface IAspectNetKernelException

write

public void write(OutputStream aStream)
           throws IOException
Write the exception as XML to the outputstream

Specified by:
write in interface IAspectBinaryStream
Parameters:
aStream - the output stream
Throws:
IOException - thrown if we fail to write

create

public static IURRepresentation create(NetKernelException aException)
Create a new representation to hold and exception


create

public static IURRepresentation create(NetKernelError aError)
Create a new representation to hold and exception


getEncoding

public String getEncoding()
Specified by:
getEncoding in interface IAspectBinaryStream

NetKernel APIs


Copyright © 2002-2004 1060 Research Ltd. All Rights Reserved.