Class ExceptionMapifier

    • Field Detail

      • DEFAULT_EXCEPTION_MAPIFIER_KEY

        public static final String DEFAULT_EXCEPTION_MAPIFIER_KEY
        All Exception objects are stored under this key in the Map
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExceptionMapifier

        public ExceptionMapifier()
    • Method Detail

      • defaultExceptionMapifier

        public static ExceptionMapifier defaultExceptionMapifier()
        Factory method to create a new ExceptionMapifier
        Returns:
        the newly created ExceptionMapifier
      • map

        public Map<String,​Object> map​(Exception exception)
        Description copied from interface: Mapifier
        Takes an object and returns a Map containing the object's data
        Specified by:
        map in interface Mapifier<Exception>
        Parameters:
        exception - the object to create a Map from
        Returns:
        a Map containing a representation of the object