Class ClassNameConflictException

All Implemented Interfaces:
Serializable

public class ClassNameConflictException extends GrengineException
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 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 - message
      sameClassNamesInMultipleCodeLayersMap - map of class names in multiple code layers
      sameClassNamesInParentAndCodeLayersMap - map of class names in parent and code layers
      Since:
      1.0
  • Method Details

    • getSameClassNamesInMultipleCodeLayersMap

      public Map<String,List<Code>> getSameClassNamesInMultipleCodeLayersMap()
      gets a map of class name to a list of all Code layers 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

      public String getSameClassNamesInMultipleCodeLayersMapAsString()
      the map of getSameClassNamesInMultipleCodeLayersMap() 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

      public Map<String,List<Code>> getSameClassNamesInParentAndCodeLayersMap()
      gets a map of class name to a list of all Code layers 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

      public String getSameClassNamesInParentAndCodeLayersMapAsString()
      the map of getSameClassNamesInParentAndCodeLayersMap() converted to a string; survives exception deserialization.
      Returns:
      map converted to a string or empty if had not been checked
      Since:
      3.2.0