Class MapperException

All Implemented Interfaces:
Serializable

public class MapperException extends RuntimeException
An exception that is thrown when mapping failed to map source to target. This may be either a problem that the mapper was not found (it is not registered) or that the mapping itself failed.
See Also:
  • Constructor Details

    • MapperException

      public MapperException(GenericType<?> source, GenericType<?> target, String detail)
      Failed with no underlying exception.
      Parameters:
      source - type of the source
      target - type of the target
      detail - descriptive message of what failed
    • MapperException

      public MapperException(GenericType<?> source, GenericType<?> target, String detail, Throwable cause)
      Failed with an underlying exception.
      Parameters:
      source - type of the source
      target - type of the target
      detail - descriptive message of what failed
      cause - cause of this exception