Mercurial > hg > Applications > TreeVNC
comparison src/viewer_swing/java/com/glavsoft/viewer/swing/WrongParameterException.java @ 57:17b702648079
version2.7.2 original version.
author | Taninari YU <you@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 15 Dec 2013 18:04:03 +0900 |
parents | |
children | 40d400a7ec84 |
comparison
equal
deleted
inserted
replaced
0:4689cc86d6cb | 57:17b702648079 |
---|---|
1 // Copyright (C) 2010, 2011, 2012, 2013 GlavSoft LLC. | |
2 // All rights reserved. | |
3 // | |
4 //------------------------------------------------------------------------- | |
5 // This file is part of the TightVNC software. Please visit our Web site: | |
6 // | |
7 // http://www.tightvnc.com/ | |
8 // | |
9 // This program is free software; you can redistribute it and/or modify | |
10 // it under the terms of the GNU General Public License as published by | |
11 // the Free Software Foundation; either version 2 of the License, or | |
12 // (at your option) any later version. | |
13 // | |
14 // This program is distributed in the hope that it will be useful, | |
15 // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 // GNU General Public License for more details. | |
18 // | |
19 // You should have received a copy of the GNU General Public License along | |
20 // with this program; if not, write to the Free Software Foundation, Inc., | |
21 // 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
22 //------------------------------------------------------------------------- | |
23 // | |
24 | |
25 package com.glavsoft.viewer.swing; | |
26 | |
27 import com.glavsoft.exceptions.CommonException; | |
28 | |
29 /** | |
30 * @author dime at tightvnc.com | |
31 */ | |
32 public class WrongParameterException extends CommonException { | |
33 | |
34 private String propertyName; | |
35 | |
36 public WrongParameterException(String message) { | |
37 super(message); | |
38 } | |
39 | |
40 public String getPropertyName() { | |
41 return propertyName; | |
42 } | |
43 | |
44 public WrongParameterException(String message, String propertyName) { | |
45 super(message); | |
46 this.propertyName = propertyName; | |
47 } | |
48 } |