Uses of Class
it.unimib.unimibmodules.exception.FormatException
Packages that use FormatException
Package
Description
-
Uses of FormatException in it.unimib.unimibmodules.controller
Methods in it.unimib.unimibmodules.controller that throw FormatExceptionModifier and TypeMethodDescriptionvoidInserts an instance of Survey in the databaseorg.springframework.http.ResponseEntity<String>Creates a survey, with the given name and request's date-time, that is associated to the given user idabstract MDTOMapping.convertToEntity(T dto) Converts an instance of T to an instance of MSurveyController.convertToEntity(SurveyDTO surveyDTO) Conversion of an instance of SurveyDTO to an instance of Surveyorg.springframework.http.ResponseEntity<String>SurveyController.deleteSurvey(int id) Deletes the survey associated with the given id.voidSurveyRepository.modifyName(String name, int id) Updates the survey namevoidSurveyRepository.modifyQuestions(Set<SurveyQuestions> surveyQuestions, int surveyId) Updates all the questions of survey in the database.org.springframework.http.ResponseEntity<String>SurveyController.modifySurvey(SurveyDTO surveyDTO) Modifies the survey's name associated with the given surveyDTO.voidSurveyRepository.remove(int id) Deletes from the database the survey identified by id. -
Uses of FormatException in it.unimib.unimibmodules.dto
Methods in it.unimib.unimibmodules.dto that throw FormatExceptionModifier and TypeMethodDescriptionSurveyDTO.getCreationDateConverted(String timezone, SimpleDateFormat dateFormat) Returns the creationDate of the surveyDTO in Date type using the given time zone. -
Uses of FormatException in it.unimib.unimibmodules.exception
Methods in it.unimib.unimibmodules.exception with parameters of type FormatExceptionModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Object>ExceptionController.handleFormatException(FormatException ex) Returns a ResponseEntity to the rest client with the error message and HTTP code 400 -
Uses of FormatException in it.unimib.unimibmodules.repository
Methods in it.unimib.unimibmodules.repository that throw FormatExceptionModifier and TypeMethodDescriptionvoidInserts a new instance of Survey in the databasevoidInserts a new Set of surveys in the databasevoidSurveyRepositoryImpl.modifyName(String name, int id) Updates the name of the survey in the database.voidSurveyRepositoryImpl.modifyQuestions(Set<SurveyQuestions> surveyQuestions, int surveyId) Updates the questions list of the survey.voidSurveyRepositoryImpl.remove(int id) Deletes from the database the survey identified by id.