org.wso2.carbon.device.mgt.mobile.windows.api.common.util

## Class ErrorHandler

- java.lang.Object
- - org.wso2.carbon.device.mgt.mobile.windows.api.common.util.ErrorHandler

- All Implemented Interfaces:
    javax.ws.rs.ext.ExceptionMapper<WindowsConfigurationException>

      public class ErrorHandler
      extends Object
      implements javax.ws.rs.ext.ExceptionMapper<WindowsConfigurationException>

  Class for handle response exceptions.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ErrorHandler()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.ws.rs.core.Response` | `toResponse(WindowsConfigurationException exception)`

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

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

- - ### Constructor Detail

    - #### ErrorHandler

          public ErrorHandler()

  - ### Method Detail

    - #### toResponse

          public javax.ws.rs.core.Response toResponse(WindowsConfigurationException exception)

      Specified by:
        `toResponse` in interface `javax.ws.rs.ext.ExceptionMapper<WindowsConfigurationException>`

Copyright © 2017 WSO2. All rights reserved.