Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 90a417a

Browse files
StepFive: update ReservationControllerException.java
1 parent 5d33cba commit 90a417a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎StepFive/src/main/java/me/oldboy/exception/reservation_exception/ReservationControllerException.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
package me.oldboy.exception.reservation_exception;
22

3+
/**
4+
* Exception thrown by controller layer in various situations, such as:
5+
* reservation does not exist or was not found, reservation is not possible,
6+
* duplicate reservation, insufficient rights to make a reservation, etc.
7+
*
8+
* This exception extends {@link RuntimeException}, indicating that an error
9+
* occurred in the reservation thread controller layer.
10+
*/
311
public class ReservationControllerException extends RuntimeException {
12+
/**
13+
* Creates a {@code ReservationServiceException} with a message describing the exception.
14+
* @param msg — a detailed message.
15+
*/
416
public ReservationControllerException(String msg) {
517
super(msg);
618
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /