SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
NameConflictException.java
1/*
2 * Class: NameConflictException
3 * Description: An exception
4 * Environment: Java
5 * Software: SSJ
6 * Copyright (C) 2001 Pierre L'Ecuyer and Universite de Montreal
7 * Organization: DIRO, Universite de Montreal
8 * @author
9 * @since
10 *
11 *
12 * Licensed under the Apache License, Version 2.0 (the "License");
13 * you may not use this file except in compliance with the License.
14 * You may obtain a copy of the License at
15 *
16 * http://www.apache.org/licenses/LICENSE-2.0
17 *
18 * Unless required by applicable law or agreed to in writing, software
19 * distributed under the License is distributed on an "AS IS" BASIS,
20 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21 * See the License for the specific language governing permissions and
22 * limitations under the License.
23 *
24 */
25package umontreal.ssj.util;
26
33public class NameConflictException extends Exception {
34 private static final long serialVersionUID = -5124156035520217708L;
35 private ClassFinder finder;
36 private String name;
37
42 }
43
49 public NameConflictException(String message) {
50 super(message);
51 }
52
61 public NameConflictException(ClassFinder finder, String name, String message) {
62 super(message);
63 this.finder = finder;
64 this.name = name;
65 }
66
73 return finder;
74 }
75
81 public String getName() {
82 return name;
83 }
84}
Utility class used to convert a simple class name to a fully qualified class object.
ClassFinder getClassFinder()
Returns the class finder associated with this exception.
NameConflictException(ClassFinder finder, String name, String message)
Constructs a new name conflict exception with class finder finder, simple name name,...
NameConflictException()
Constructs a new name conflict exception.
NameConflictException(String message)
Constructs a new name conflict exception with message message.
String getName()
Returns the simple name associated with this exception.