org.ESLM.Parser.BadFormedJSONExerciseException.java Source code

Java tutorial

Introduction

Here is the source code for org.ESLM.Parser.BadFormedJSONExerciseException.java

Source

package org.ESLM.Parser;

/*
Copyright (C) 2015 Rmi Even, Eric Perlinski
<remi.even@telecomnancy.net>
<eric.perlinski@telecomnancy.net>
    
This file is part of ESLM.
    
ESLM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
    
ESLM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
    
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

import org.json.JSONObject;

@SuppressWarnings("serial")
public class BadFormedJSONExerciseException extends Exception {

    private final JSONObject badFormedJSONExercise;

    public BadFormedJSONExerciseException(String message, JSONObject badFormedJSONExercise) {
        super(message);
        this.badFormedJSONExercise = badFormedJSONExercise;
    }

    public JSONObject getBadFormedJSONExercise() {
        return badFormedJSONExercise;
    }

}