Package ch.grengine.except
Class ClassNameConflictException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ch.grengine.except.GrengineException
ch.grengine.except.ClassNameConflictException
- All Implemented Interfaces:
Serializable
Exception optionally thrown if code layers or code layers and parent
class loader contain classes with the same name.
- Since:
- 1.0
- Author:
- Alain Stalder, Made in Switzerland.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongets a map of class name to a list of allCodelayers that contain a class with that name, but only if the class name occurred more than once in the code layers.the map ofgetSameClassNamesInMultipleCodeLayersMap()converted to a string; survives exception deserialization.gets a map of class name to a list of allCodelayers that contain a class with that name, but only if the class name occurred also in the parent class loader.the map ofgetSameClassNamesInParentAndCodeLayersMap()converted to a string; survives exception deserialization.Methods inherited from class ch.grengine.except.GrengineException
getDateThrown, getMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ClassNameConflictException
public ClassNameConflictException(String message, Map<String, List<Code>> sameClassNamesInMultipleCodeLayersMap, Map<String, List<Code>> sameClassNamesInParentAndCodeLayersMap) constructor from exception message and maps with class conflict information.One of the maps may be null if the corresponding check has not been made.
- Parameters:
message- messagesameClassNamesInMultipleCodeLayersMap- map of class names in multiple code layerssameClassNamesInParentAndCodeLayersMap- map of class names in parent and code layers- Since:
- 1.0
-
-
Method Details
-
getSameClassNamesInMultipleCodeLayersMap
gets a map of class name to a list of allCodelayers that contain a class with that name, but only if the class name occurred more than once in the code layers.- Returns:
- map or null if had not been checked or the exception was deserialized
- Since:
- 1.0
-
getSameClassNamesInMultipleCodeLayersMapAsString
the map ofgetSameClassNamesInMultipleCodeLayersMap()converted to a string; survives exception deserialization.- Returns:
- map converted to a string or empty if had not been checked
- Since:
- 3.2.0
-
getSameClassNamesInParentAndCodeLayersMap
gets a map of class name to a list of allCodelayers that contain a class with that name, but only if the class name occurred also in the parent class loader.- Returns:
- map or null if had not been checked or the exception was deserialized
- Since:
- 1.0
-
getSameClassNamesInParentAndCodeLayersMapAsString
the map ofgetSameClassNamesInParentAndCodeLayersMap()converted to a string; survives exception deserialization.- Returns:
- map converted to a string or empty if had not been checked
- Since:
- 3.2.0
-