001/* 002 * This file is part of the Keycloak Moodle authenticator 003 * Copyright (C) 2024 Michael N. Lipp 004 * 005 * This program is free software; you can redistribute it and/or modify it 006 * under the terms of the GNU Lesser General Public License as published 007 * by the Free Software Foundation; either version 3 of the License, or 008 * (at your option) any later version. 009 * 010 * This program is distributed in the hope that it will be useful, but 011 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 012 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 013 * License for more details. 014 * 015 * You should have received a copy of the GNU Lesser General Public License along 016 * with this program; if not, see <http://www.gnu.org/licenses/>. 017 */ 018 019package org.jdrupes.keycloak.moodleauth.moodle.model; 020 021/** 022 * A base class that can hold values returned in case of errors. 023 */ 024@SuppressWarnings("PMD.DataClass") 025public class MoodleErrorValues { 026 027 private String error; 028 private String errorcode; 029 private String exception; 030 private String message; 031 032 /** 033 * @return the error 034 */ 035 public String getError() { 036 return error; 037 } 038 039 /** 040 * @param error the error to set 041 */ 042 public void setError(String error) { 043 this.error = error; 044 } 045 046 /** 047 * @return the errorcode 048 */ 049 public String getErrorcode() { 050 return errorcode; 051 } 052 053 /** 054 * @param errorcode the errorcode to set 055 */ 056 public void setErrorcode(String errorcode) { 057 this.errorcode = errorcode; 058 } 059 060 /** 061 * @return the exception 062 */ 063 public String getException() { 064 return exception; 065 } 066 067 /** 068 * @param exception the exception to set 069 */ 070 public void setException(String exception) { 071 this.exception = exception; 072 } 073 074 /** 075 * @return the message 076 */ 077 public String getMessage() { 078 return message; 079 } 080 081 /** 082 * @param message the message to set 083 */ 084 public void setMessage(String message) { 085 this.message = message; 086 } 087}