| Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
| EOGeneralAdaptorException |
|
| 1.0;1 |
| 1 | /* |
|
| 2 | Wotonomy: OpenStep design patterns for pure Java applications. |
|
| 3 | Copyright (C) 2001 Michael Powers |
|
| 4 | ||
| 5 | This library is free software; you can redistribute it and/or |
|
| 6 | modify it under the terms of the GNU Lesser General Public |
|
| 7 | License as published by the Free Software Foundation; either |
|
| 8 | version 2.1 of the License, or (at your option) any later version. |
|
| 9 | ||
| 10 | This library 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 GNU |
|
| 13 | Lesser General Public License for more details. |
|
| 14 | ||
| 15 | You should have received a copy of the GNU Lesser General Public |
|
| 16 | License along with this library; if not, see http://www.gnu.org |
|
| 17 | */ |
|
| 18 | package net.wotonomy.access; |
|
| 19 | ||
| 20 | import net.wotonomy.foundation.NSDictionary; |
|
| 21 | ||
| 22 | /** |
|
| 23 | * Generic exception thrown by wotonomy.access. |
|
| 24 | * |
|
| 25 | * @author ezamudio@nasoft.com |
|
| 26 | * @author $Author: cgruber $ |
|
| 27 | * @version $Revision: 893 $ |
|
| 28 | */ |
|
| 29 | public class EOGeneralAdaptorException extends RuntimeException implements java.io.Serializable { |
|
| 30 | ||
| 31 | private NSDictionary _userInfo; |
|
| 32 | ||
| 33 | public EOGeneralAdaptorException(String msg) { |
|
| 34 | 0 | super(msg); |
| 35 | 0 | } |
| 36 | ||
| 37 | public EOGeneralAdaptorException(String name, NSDictionary userInfo) { |
|
| 38 | 0 | super(name); |
| 39 | 0 | _userInfo = userInfo; |
| 40 | 0 | } |
| 41 | ||
| 42 | public EOGeneralAdaptorException(String selectorName, String className, String msg) { |
|
| 43 | 0 | super(msg); |
| 44 | 0 | _userInfo = new NSDictionary( |
| 45 | 0 | new Object[]{ selectorName, className }, |
| 46 | 0 | new Object[]{ "selectorName", "className" }); |
| 47 | 0 | } |
| 48 | ||
| 49 | public NSDictionary userInfo() { |
|
| 50 | 0 | return _userInfo; |
| 51 | } |
|
| 52 | ||
| 53 | } |
|
| 54 | /* |
|
| 55 | * $Log$ |
|
| 56 | * Revision 1.1 2006/02/16 13:19:57 cgruber |
|
| 57 | * Check in all sources in eclipse-friendly maven-enabled packages. |
|
| 58 | * |
|
| 59 | * Revision 1.1 2003/08/13 00:41:50 chochos |
|
| 60 | * general adaptor exception |
|
| 61 | * |
|
| 62 | */ |