org.appng.appngizer.controller

## Class ConflictException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - org.appng.appngizer.controller.ConflictException

- All Implemented Interfaces:
    Serializable

      public class ConflictException
      extends Exception

  `ConflictException` can be used to return `ResponseEntity<Errors>` from controller methods that are defined with a different type than `String`.

  E.g. the controller returns `ResponseEntity<Application>` but in case of errors a message should be returned as `ResponseEntity<Errors>` together with `HttpStatus.CONFLICT`. To achieve this, a `ConflictException` can be raised and will be caught by the `ControllerBase.onConflictException(javax.servlet.http.HttpServletRequest, ConflictException)`.

  See Also:
    `Errors`, `ControllerBase.onConflictException(javax.servlet.http.HttpServletRequest, ConflictException)`, Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConflictException(List<String> conflicts)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<String>` | `getConflicts()`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### ConflictException

          public ConflictException(List<String> conflicts)

  - ### Method Detail

    - #### getConflicts

          public List<String> getConflicts()

Copyright © 2011–2023 aiticon GmbH. All rights reserved.