Class Error

  • All Implemented Interfaces:
    XMLizable

    public class Error
    extends java.lang.Object
    implements XMLizable
    Error --
    Since:
    160
    Author:
    mcheenath
    • Constructor Detail

      • Error

        public Error()
        Constructor
      • Error

        public Error​(java.lang.String[] fields,
                     java.lang.String message,
                     StatusCode statusCode)
    • Method Detail

      • getFields

        public java.lang.String[] getFields()
      • setFields

        public void setFields​(java.lang.String[] fields)
      • getMessage

        public java.lang.String getMessage()
      • setMessage

        public void setMessage​(java.lang.String message)
      • getStatusCode

        public StatusCode getStatusCode()
      • setStatusCode

        public void setStatusCode​(StatusCode statusCode)
      • write

        public void write​(javax.xml.namespace.QName __element,
                          XmlOutputStream __out,
                          TypeMapper __typeMapper)
                   throws java.io.IOException
        Description copied from interface: XMLizable
        write this instace as xml.
        Specified by:
        write in interface XMLizable
        Parameters:
        __element - xml element name
        __out - xml output stream
        __typeMapper - type mapper to be used
        Throws:
        java.io.IOException - failed to write xml
      • writeFields

        protected void writeFields​(XmlOutputStream __out,
                                   TypeMapper __typeMapper)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • load

        public void load​(XmlInputStream __in,
                         TypeMapper __typeMapper)
                  throws java.io.IOException,
                         ConnectionException
        Description copied from interface: XMLizable
        load the fileds/children from the specified xml stream
        Specified by:
        load in interface XMLizable
        Parameters:
        __in - xml input stream from which the data is read
        __typeMapper - type mapper to be used
        Throws:
        java.io.IOException - failed to read xml
        ConnectionException - failed to read/parser/bind xml
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object