use of io.fabric8.gateway.handlers.detecting.protocol.openwire.support.OpenwireException in project fabric8 by jboss-fuse.
the class BaseDataStreamMarshaller method createThrowable.
private Throwable createThrowable(UTF8Buffer className, UTF8Buffer message) {
try {
Class clazz = Class.forName(className.toString(), false, BaseDataStreamMarshaller.class.getClassLoader());
Constructor constructor = clazz.getConstructor(new Class[] { UTF8Buffer.class });
return (Throwable) constructor.newInstance(new Object[] { message.toString() });
} catch (Throwable e) {
return new OpenwireException(message.toString(), className.toString());
}
}
Aggregations