fluid-api/src/main/java/com/fluidbpm/program/api/vo/ws/Error.java
@Override
    public JSONObject toJsonObject() throws JSONException {

        JSONObject returnVal = super.toJsonObject();

        returnVal.put(JSONMapping.ERROR_CODE, this.getErrorCode());
        returnVal.put(JSONMapping.ERROR_CODE_OTHER, this.getErrorCode());

        //Error Message...
        if(this.getErrorMessage() != null)
        {
            returnVal.put(JSONMapping.ERROR_MESSAGE,this.getErrorMessage());
            returnVal.put(JSONMapping.ERROR_MESSAGE_OTHER,this.getErrorMessage());
        }

        return returnVal;
    }
@Override
    public JSONObject toJsonObject() throws JSONException {

        JSONObject returnVal = super.toJsonObject();

        returnVal.put(JSONMapping.ERROR_CODE, this.getErrorCode());
        returnVal.put(JSONMapping.ERROR_CODE_OTHER, this.getErrorCode());

        //Error Message...
        if(this.getErrorMessage() != null)
        {
            returnVal.put(JSONMapping.ERROR_MESSAGE,this.getErrorMessage());
            returnVal.put(JSONMapping.ERROR_MESSAGE_OTHER,this.getErrorMessage());
        }

        return returnVal;
    }
<p>
Base {@code toJsonObject} that creates a {@code JSONObject}
with the Id and ServiceTicket set.
</p>

@return {@code JSONObject} representation of {@code ABaseFluidJSONObject}
@throws JSONException If there is a problem with the JSON Body.

@see org.json.JSONObject