Class ConstraintViolationThrowableProblem

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.zalando.problem.ThrowableProblem
io.micronaut.problem.violations.ConstraintViolationThrowableProblem
All Implemented Interfaces:
Serializable, org.zalando.problem.Exceptional, org.zalando.problem.Problem

public class ConstraintViolationThrowableProblem extends org.zalando.problem.ThrowableProblem
ThrowableProblem for constraints violations.
Since:
1.0
Author:
Sergio del Amo
See Also:
  • Field Details

  • Constructor Details

    • ConstraintViolationThrowableProblem

      public ConstraintViolationThrowableProblem(@NonNull @NonNull org.zalando.problem.StatusType status, @Nullable @Nullable List<Violation> violations)
    • ConstraintViolationThrowableProblem

      public ConstraintViolationThrowableProblem(@NonNull @NonNull URI type, @NonNull @NonNull org.zalando.problem.StatusType status, @Nullable @Nullable List<Violation> violations)
  • Method Details

    • getType

      @NonNull public @NonNull URI getType()
    • getTitle

      @NonNull public @NonNull String getTitle()
    • getStatus

      @NonNull public @NonNull org.zalando.problem.StatusType getStatus()
    • getViolations

      @NonNull public @NonNull List<Violation> getViolations()
      Returns:
      Violations