Gridarta Editor
DuplicateSmoothFaceException.java
Go to the documentation of this file.
1 /*
2  * Gridarta MMORPG map editor for Crossfire, Daimonin and similar games.
3  * Copyright (C) 2000-2023 The Gridarta Developers.
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18  */
19 
20 package net.sf.gridarta.model.smoothface;
21 
22 import org.jetbrains.annotations.NotNull;
23 
28 public class DuplicateSmoothFaceException extends Exception {
29 
33  private static final long serialVersionUID = 1L;
34 
39  @NotNull
40  private final String newValue;
41 
46  @NotNull
47  private final String oldValue;
48 
55  public DuplicateSmoothFaceException(@NotNull final String face, @NotNull final String newValue, @NotNull final String oldValue) {
56  super(face);
57  this.newValue = newValue;
58  this.oldValue = oldValue;
59  }
60 
65  @NotNull
66  public String getOldValue() {
67  return oldValue;
68  }
69 
74  @NotNull
75  public String getNewValue() {
76  return newValue;
77  }
78 
79 }
net.sf.gridarta.model.smoothface.DuplicateSmoothFaceException.oldValue
final String oldValue
The existing value.
Definition: DuplicateSmoothFaceException.java:47
net.sf.gridarta.model.smoothface.DuplicateSmoothFaceException
Thrown to indicate that a SmoothFace instance is not unique.
Definition: DuplicateSmoothFaceException.java:28
net.sf.gridarta.model.smoothface.DuplicateSmoothFaceException.newValue
final String newValue
The new value.
Definition: DuplicateSmoothFaceException.java:40
net.sf.gridarta.model.smoothface.DuplicateSmoothFaceException.getNewValue
String getNewValue()
Returns the new value.
Definition: DuplicateSmoothFaceException.java:75
net.sf.gridarta.model.smoothface.DuplicateSmoothFaceException.serialVersionUID
static final long serialVersionUID
The serial version UID.
Definition: DuplicateSmoothFaceException.java:33
net.sf.gridarta.model.smoothface.DuplicateSmoothFaceException.DuplicateSmoothFaceException
DuplicateSmoothFaceException(@NotNull final String face, @NotNull final String newValue, @NotNull final String oldValue)
Creates a new instance.
Definition: DuplicateSmoothFaceException.java:55
net.sf.gridarta.model.smoothface.DuplicateSmoothFaceException.getOldValue
String getOldValue()
Returns the existing value.
Definition: DuplicateSmoothFaceException.java:66