Class BodyError

java.lang.Object
org.eclipse.keyple.core.util.json.BodyError

public class BodyError extends Object
POJO used to transport the content of an Exception into a string.
Since:
2.0.0
  • Constructor Details

    • BodyError

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

    • getCode

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

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