Class ApiController
java.lang.Object
edu.ucsb.cs156.courses.controllers.ApiController
- Direct Known Subclasses:
GradeDataController
,JobsController
,PersonalSchedulesController
,PersonalSectionsController
,PSCourseController
,SystemInfoController
,UCSBSubjectsController
,UserInfoController
,UsersController
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected Object
genericMessage
(String message) protected CurrentUser
-
Constructor Details
-
ApiController
public ApiController()
-
-
Method Details
-
getCurrentUser
-
genericMessage
-
handleGenericException
@ExceptionHandler({EntityNotFoundException.class,BadEnrollCdException.class}) @ResponseStatus(NOT_FOUND) public Object handleGenericException(Throwable e) -
handleIllegalArgumentException
@ExceptionHandler(java.lang.IllegalArgumentException.class) @ResponseStatus(BAD_REQUEST) public Object handleIllegalArgumentException(Throwable e)
-