001/**
002 *   GRANITE DATA SERVICES
003 *   Copyright (C) 2006-2013 GRANITE DATA SERVICES S.A.S.
004 *
005 *   This file is part of the Granite Data Services Platform.
006 *
007 *                               ***
008 *
009 *   Community License: GPL 3.0
010 *
011 *   This file is free software: you can redistribute it and/or modify
012 *   it under the terms of the GNU General Public License as published
013 *   by the Free Software Foundation, either version 3 of the License,
014 *   or (at your option) any later version.
015 *
016 *   This file is distributed in the hope that it will be useful, but
017 *   WITHOUT ANY WARRANTY; without even the implied warranty of
018 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
019 *   GNU General Public License for more details.
020 *
021 *   You should have received a copy of the GNU General Public License
022 *   along with this program. If not, see <http://www.gnu.org/licenses/>.
023 *
024 *                               ***
025 *
026 *   Available Commercial License: GraniteDS SLA 1.0
027 *
028 *   This is the appropriate option if you are creating proprietary
029 *   applications and you are not prepared to distribute and share the
030 *   source code of your application under the GPL v3 license.
031 *
032 *   Please visit http://www.granitedataservices.com/license for more
033 *   details.
034 */
035package org.granite.client.tide.server;
036
037import org.granite.client.messaging.messages.responses.FaultMessage.Code;
038
039/**
040 * @author William DRAI
041 */
042public class Fault {
043
044    private Code faultCode;
045    private String faultDescription;
046    private String faultDetails;
047    
048    private Object content;
049    
050    private Object cause;
051    
052    public Fault(Code faultCode, String faultDescription, String faultDetails) {
053        this.faultCode = faultCode;
054        this.faultDescription = faultDescription;
055        this.faultDetails = faultDetails;
056    }
057    
058    public Code getCode() {
059        return faultCode;
060    }
061    
062    public String getFaultDescription() {
063        return faultDescription;
064    }
065    
066    public String getFaultDetails() {
067        return faultDetails;
068    }
069
070    
071    public Object getContent() {
072        return content;
073    }
074    
075    public void setContent(Object context) {
076        this.content = context;
077    }
078    
079    public Object getCause() {
080        return cause;
081    }
082    
083    public void setCause(Object cause) {
084        this.cause = cause;
085    }
086}