Class BodyError


  • public class BodyError
    extends java.lang.Object
    POJO used to transports the content of an Exception into a string.
    Since:
    2.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      BodyError​(java.lang.Exception exception)
      Builds an instance from an exception reference.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCode()
      Gets the exception class name.
      java.lang.Exception getException()
      Gets the associated exception.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BodyError

        public BodyError​(java.lang.Exception exception)
        Builds an instance from an exception reference.
        Parameters:
        exception - The exception.
        Since:
        2.0.0
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Gets the exception class name.
        Returns:
        a not null value.
        Since:
        2.0.0
      • getException

        public java.lang.Exception getException()
        Gets the associated exception.
        Returns:
        a not null reference.
        Since:
        2.0.0