Class BaseController
java.lang.Object
de.hybris.platform.ycommercewebservices.v1.controller.BaseController
- Direct Known Subclasses:
CartController,CatalogsController,CustomerGroupsController,CustomersController,OrderController,ProductsController,PromotionsController,StoreController,StoreFinderController,VouchersController
Base Controller. It defines the exception handler to be used by all controllers. Extending controllers can add or
overwrite the exception handler if needed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ErrorListWsDTOhandleErrorInternal(String type, String message) protected static String
-
Field Details
-
DEFAULT_PAGE_SIZE
- See Also:
-
DEFAULT_CURRENT_PAGE
- See Also:
-
-
Constructor Details
-
BaseController
public BaseController()
-
-
Method Details
-
handleModelNotFoundException
@ResponseStatus(BAD_REQUEST) @ResponseBody @ExceptionHandler(ModelNotFoundException.class) public ErrorListWsDTO handleModelNotFoundException(Exception ex) -
handleErrorInternal
-
sanitize
-