All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sforce.soap.tooling.ApiFault Maven / Gradle / Ivy

package com.sforce.soap.tooling;

/**
 * Generated by ComplexTypeCodeGenerator.java. Please do not edit.
 */
public class ApiFault extends com.sforce.ws.SoapFaultException implements com.sforce.ws.bind.XMLizable {

    /**
     * Constructor
     */
    public ApiFault() {}

    /**
     * element : exceptionCode of type {urn:tooling.soap.sforce.com}ExceptionCode
     * java type: com.sforce.soap.tooling.ExceptionCode
     */
    private static final com.sforce.ws.bind.TypeInfo exceptionCode__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","exceptionCode","urn:tooling.soap.sforce.com","ExceptionCode",1,1,true);

    private boolean exceptionCode__is_set = false;

    private com.sforce.soap.tooling.ExceptionCode exceptionCode;

    public com.sforce.soap.tooling.ExceptionCode getExceptionCode() {
      return exceptionCode;
    }

    public void setExceptionCode(com.sforce.soap.tooling.ExceptionCode exceptionCode) {
      this.exceptionCode = exceptionCode;
      exceptionCode__is_set = true;
    }

    /**
     * element : exceptionMessage of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo exceptionMessage__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","exceptionMessage","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    private boolean exceptionMessage__is_set = false;

    private java.lang.String exceptionMessage;

    public java.lang.String getExceptionMessage() {
      return exceptionMessage;
    }

    public void setExceptionMessage(java.lang.String exceptionMessage) {
      this.exceptionMessage = exceptionMessage;
      exceptionMessage__is_set = true;
    }

    /**
     * element : upgradeURL of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo upgradeURL__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","upgradeURL","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    private boolean upgradeURL__is_set = false;

    private java.lang.String upgradeURL;

    public java.lang.String getUpgradeURL() {
      return upgradeURL;
    }

    public void setUpgradeURL(java.lang.String upgradeURL) {
      this.upgradeURL = upgradeURL;
      upgradeURL__is_set = true;
    }

    /**
     * element : upgradeMessage of type {http://www.w3.org/2001/XMLSchema}string
     * java type: java.lang.String
     */
    private static final com.sforce.ws.bind.TypeInfo upgradeMessage__typeInfo =
      new com.sforce.ws.bind.TypeInfo("urn:tooling.soap.sforce.com","upgradeMessage","http://www.w3.org/2001/XMLSchema","string",0,1,true);

    private boolean upgradeMessage__is_set = false;

    private java.lang.String upgradeMessage;

    public java.lang.String getUpgradeMessage() {
      return upgradeMessage;
    }

    public void setUpgradeMessage(java.lang.String upgradeMessage) {
      this.upgradeMessage = upgradeMessage;
      upgradeMessage__is_set = true;
    }

    /**
     */
    @Override
    public void write(javax.xml.namespace.QName __element,
        com.sforce.ws.parser.XmlOutputStream __out, com.sforce.ws.bind.TypeMapper __typeMapper)
        throws java.io.IOException {
      __out.writeStartTag(__element.getNamespaceURI(), __element.getLocalPart());
      writeFields(__out, __typeMapper);
      __out.writeEndTag(__element.getNamespaceURI(), __element.getLocalPart());
    }

    protected void writeFields(com.sforce.ws.parser.XmlOutputStream __out,
         com.sforce.ws.bind.TypeMapper __typeMapper)
         throws java.io.IOException {
       __typeMapper.writeObject(__out, exceptionCode__typeInfo, exceptionCode, exceptionCode__is_set);
       __typeMapper.writeString(__out, exceptionMessage__typeInfo, exceptionMessage, exceptionMessage__is_set);
       __typeMapper.writeString(__out, upgradeURL__typeInfo, upgradeURL, upgradeURL__is_set);
       __typeMapper.writeString(__out, upgradeMessage__typeInfo, upgradeMessage, upgradeMessage__is_set);
    }

    @Override
    public void load(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
      __typeMapper.consumeStartTag(__in);
      loadFields(__in, __typeMapper);
      __typeMapper.consumeEndTag(__in);
    }

    protected void loadFields(com.sforce.ws.parser.XmlInputStream __in,
        com.sforce.ws.bind.TypeMapper __typeMapper) throws java.io.IOException, com.sforce.ws.ConnectionException {
        __in.peekTag();
        if (__typeMapper.verifyElement(__in, exceptionCode__typeInfo)) {
            setExceptionCode((com.sforce.soap.tooling.ExceptionCode)__typeMapper.readObject(__in, exceptionCode__typeInfo, com.sforce.soap.tooling.ExceptionCode.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, exceptionMessage__typeInfo)) {
            setExceptionMessage(__typeMapper.readString(__in, exceptionMessage__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, upgradeURL__typeInfo)) {
            setUpgradeURL(__typeMapper.readString(__in, upgradeURL__typeInfo, java.lang.String.class));
        }
        __in.peekTag();
        if (__typeMapper.isElement(__in, upgradeMessage__typeInfo)) {
            setUpgradeMessage(__typeMapper.readString(__in, upgradeMessage__typeInfo, java.lang.String.class));
        }
    }

    @Override
    public String toString() {
      java.lang.StringBuilder sb = new java.lang.StringBuilder();
      sb.append("[ApiFault ");
      sb.append(" exceptionCode=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(exceptionCode)+"'\n");
      sb.append(" exceptionMessage=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(exceptionMessage)+"'\n");
      sb.append(" upgradeURL=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(upgradeURL)+"'\n");
      sb.append(" upgradeMessage=");
      sb.append("'"+com.sforce.ws.util.Verbose.toString(upgradeMessage)+"'\n");
      sb.append("]\n");
      return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy