org.apache.vinci.transport
Class ErrorFrame

java.lang.Object
  extended by org.apache.vinci.transport.FrameComponent
      extended by org.apache.vinci.transport.Frame
          extended by org.apache.vinci.transport.QueryableFrame
              extended by org.apache.vinci.transport.VinciFrame
                  extended by org.apache.vinci.transport.ErrorFrame
All Implemented Interfaces:
Transportable

public class ErrorFrame
extends VinciFrame

This is a special VinciFrame that simplifies returning error or exceptional conditions. If a service returns an error frame, then the client's request method will in response throw an exception with the provided error_message. Returning an error frame from VinciServable.eval() has the same effect as throwing a ServiceException.


Constructor Summary
ErrorFrame(java.lang.String error_message)
           
 
Method Summary
 
Methods inherited from class org.apache.vinci.transport.VinciFrame
add, createSubFrame, ensureCapacity, fdrop, fdropFirst, fget, fgetFirst, fgetVinciFrame, fkeys, freset, fset, fset, fset, fset, fset, fset, fset, fset, fsetTrueBinary, getKeyValuePair, getKeyValuePairCount, getVinciFrameFactory, set, stripWhitespace, toVinciFrame
 
Methods inherited from class org.apache.vinci.transport.QueryableFrame
fgetBoolean, fgetBytes, fgetDouble, fgetDoubleArray, fgetFloat, fgetFloatArray, fgetFrame, fgetInt, fgetIntArray, fgetLong, fgetLongArray, fgetString, fgetStringArray, fgetTrueBinary
 
Methods inherited from class org.apache.vinci.transport.Frame
createFrameLeaf, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, fadd, faddTrueBinary, fromStream, getFrameTransporter, setFrameTransporter, toRawXML, toRawXML, toRawXMLWork, toStream, toString, toXML, toXML, toXML
 
Methods inherited from class org.apache.vinci.transport.FrameComponent
getAttributes, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErrorFrame

public ErrorFrame(java.lang.String error_message)


Copyright © 2010 The Apache Software Foundation. All Rights Reserved.