Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,27 @@
import static org.springframework.http.HttpStatus.NOT_FOUND;

import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.JsonMappingException.Reference;
import com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException;
import com.wcc.platform.domain.exceptions.*;
import com.wcc.platform.domain.exceptions.ApplicationMenteeWorkflowException;
import com.wcc.platform.domain.exceptions.ApplicationNotFoundException;
import com.wcc.platform.domain.exceptions.ContentNotFoundException;
import com.wcc.platform.domain.exceptions.DuplicatedException;
import com.wcc.platform.domain.exceptions.EmailSendException;
import com.wcc.platform.domain.exceptions.ErrorDetails;
import com.wcc.platform.domain.exceptions.ForbiddenException;
import com.wcc.platform.domain.exceptions.InvalidProgramTypeException;
import com.wcc.platform.domain.exceptions.MemberNotFoundException;
import com.wcc.platform.domain.exceptions.MenteeNotSavedException;
import com.wcc.platform.domain.exceptions.MenteeRegistrationLimitException;
import com.wcc.platform.domain.exceptions.MentorNotFoundException;
import com.wcc.platform.domain.exceptions.MentorStatusException;
import com.wcc.platform.domain.exceptions.MentorshipCycleClosedException;
import com.wcc.platform.domain.exceptions.PlatformInternalException;
import com.wcc.platform.domain.exceptions.TemplateValidationException;
import com.wcc.platform.repository.file.FileRepositoryException;
Comment thread
dricazenck marked this conversation as resolved.
import jakarta.validation.ConstraintViolationException;
import java.util.List;
import java.util.NoSuchElementException;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
Expand All @@ -22,6 +39,7 @@
import org.springframework.web.context.request.WebRequest;

/** Global controller to handle all exceptions for the API. */
@SuppressWarnings({"PMD.ExcessiveImports"})
@RestControllerAdvice
public class GlobalExceptionHandler {

Expand Down Expand Up @@ -190,7 +208,7 @@ private String extractReadableMessage(final HttpMessageNotReadableException ex)
return cause.getMessage();
}

private String formatPath(final java.util.List<JsonMappingException.Reference> path) {
private String formatPath(final List<Reference> path) {
if (path.isEmpty()) {
Comment thread
dricazenck marked this conversation as resolved.
return "$";
}
Expand Down
48 changes: 24 additions & 24 deletions src/main/resources/init-data/mentorshipPage.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,59 +9,59 @@
"mentorSection": {
"title": "Become a Mentor",
"description": "You should apply to be a mentor if you:",
"link": {
"label": "Join as a mentor",
"uri": "/mentorship/mentor-registration"
},
"items": [
"Want to extend your professional network",
"Want to contribute to the community",
"You are ready to share expertise",
"You want to get a new perspective and learn from your mentees"
],
"link": {
"label": "Join as a mentor",
"uri": "/mentorship/mentor-registration"
}
]
},
"menteeSection": {
"title": "Become a Mentee",
"description": "You should apply to be a mentee if you:",
"link": {
"label": "Check our mentors",
"uri": "/mentorship/mentors"
},
"items": [
"Want to start career in software engineering",
"Want to find a better job",
"Want to be promoted at work",
"Want to apply for a leadership position",
"Need support in advancing your career"
],
"link": {
"label": "Check our mentors",
"uri": "/mentorship/mentors"
}
]
},
"feedbackSection": {
"title": "What do participants think about our Mentorship Programme?",
"feedbacks": [
{
"name": "Lucy",
"feedback": "It is great to be able to share my experience as a newbie in Tech with someone that has more years and experience in the industry. It has definitely made me feel more comfortable with been a completely beginner again and confident that, if a put the hours in, one day it will be pay off.",
"memberType": "Mentor",
"year": 2024
"name": "Busra",
"feedback": "My session with my mentor exceeded my expectations. She's calm, caring, and incredibly knowledgeable. She offered valuable guidance not only on my career but also on life in general. My mentor truly embodies a growth mindset. I highly recommend her to any mentee seeking direction delivered with both compassion and wisdom.",
"memberType": "Mentee",
"year": 2025
},
{
"name": "Ana Smith",
"feedback": "I am exciting with this mentorship program. This is really help me to pursue my goals. I got encouragement, insights, knowledge from my mentor that makes me back on the track and focus to what I have now, upgrade it, then reach out my goals.",
"name": "Zayna",
"feedback": "My mentor really took the time to comprehend my mental barriers and gave personalised structure advice to move past them. I appreciated the mentors vulnerability in explaining similar scenarios they had been in to give me a sense of guidance and belonging. Their kindness and warmth during the session has really helped me to progress in my career due to feeling safe to open up to them.",
"memberType": "Mentee",
"year": 2024
"year": 2025
},
{
"name": "Jane",
"feedback": "My mentor has done an excellent job accommodating me and guiding me this year. This was my first experience as a mentee and it has taken time getting my footing. I entered this program because I felt isolated since I seemed to not have any clarity of my career and had a sense of general \"directionless\". Mentor has made me feel validated in my feeling and has helped me understand that my anxiety stems from not having a good understanding of the industry I hope to be a part of. Through our sessions and an exercise she gave me, I was gained a better perceptive on how exactly to direct my focus.",
"memberType": "Mentor",
"year": 2024
"name": "Anonymous",
"feedback": "Just the simple act of presenting my profile and explaining my difficulties to a professional helped me structure the ideas and information in my head, and that alone was a big help. My mentor was caring, involved, and encouraging.",
"memberType": "Mentee",
"year": 2025
},
{
"name": "Anonymous",
"feedback": "It is an extremely helpful program and the mentor is quite open with matching my needs. She also actively encourages me with when and how to make job applications. She has helped with reviewing my CV and Linkedin profile. We have started work on my own personal project and collaboratively code on it, with the mentor asking questions to reinforce learning.",
"name": "Hanna",
"feedback": "I am delighted to have had the opportunity to work with my mentor. Her explanations are always clear and thorough, and her enthusiasm and passion for our profession are truly contagious.\n Working with her has not only been educational but also incredibly motivating. Her guidance and support have given me a significant boost in my professional development. I am sincerely grateful to her for the valuable insights and encouragement she has provided.\nThank you!",
"memberType": "Mentee",
"year": 2024
}
]
}
}
}
Loading