/*
   Copyright 2016 The Trustees of University of Arizona

   Licensed under the Apache License, Version 2.0 (the "License" );
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
*/
package hsyndicate.rest.datatypes;

import hsyndicate.rest.common.RestfulException;
import org.codehaus.jackson.annotate.JsonProperty;

public class RestError {

    private String name;
    private String message;
    
    private int httpErrno;
    private String path;
    
    public RestError() {
    }
    
    @JsonProperty("name")
    public String getName() {
        return name;
    }

    @JsonProperty("name")
    public void setName(String name) {
        this.name = name;
    }

    @JsonProperty("message")
    public String getMessage() {
        return message;
    }

    @JsonProperty("message")
    public void setMessage(String message) {
        this.message = message;
    }

    public int getHttpErrno() {
        return httpErrno;
    }

    public void setHttpErrno(int httpErrno) {
        this.httpErrno = httpErrno;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
    
    @Override
    public String toString() {
        return String.format("%s (name:%s)", this.message, this.name);
    }
    
    public RestfulException makeException() {
        return new RestfulException(this.toString());
    }
}

@@ -770,16 +770,44 @@
 rror %7B%0A%0A
+    private boolean result;%0A
     priv
@@ -945,24 +945,228 @@
 %0A    %7D%0A    %0A
+    @JsonProperty(%22result%22)%0A    public boolean getResult() %7B%0A        return result;%0A    %7D%0A%0A    @JsonProperty(%22result%22)%0A    public void setResult(boolean result) %7B%0A        this.result = result;%0A    %7D%0A    %0A
     @JsonPro
@@ -1908,16 +1908,27 @@
 at(%22%25s (
+result:%25s, 
 name:%25s)
@@ -1943,16 +1943,45 @@
 message,
+ String.valueOf(this.result),
  this.na

Add result field to RestError obj