diff --git a/src/main/java/capstone/relation/global/error/GlobalExceptionHandler.java b/src/main/java/capstone/relation/global/exception/GlobalExceptionHandler.java similarity index 97% rename from src/main/java/capstone/relation/global/error/GlobalExceptionHandler.java rename to src/main/java/capstone/relation/global/exception/GlobalExceptionHandler.java index d48bd75..ce12c7e 100644 --- a/src/main/java/capstone/relation/global/error/GlobalExceptionHandler.java +++ b/src/main/java/capstone/relation/global/exception/GlobalExceptionHandler.java @@ -1,4 +1,4 @@ -package capstone.relation.global.error; +package capstone.relation.global.exception; import org.springframework.http.HttpStatus; import org.springframework.http.ProblemDetail; diff --git a/src/main/java/capstone/relation/global/error/ProblemDetailCreator.java b/src/main/java/capstone/relation/global/exception/ProblemDetailCreator.java similarity index 96% rename from src/main/java/capstone/relation/global/error/ProblemDetailCreator.java rename to src/main/java/capstone/relation/global/exception/ProblemDetailCreator.java index 2a6f1bc..a866b8d 100644 --- a/src/main/java/capstone/relation/global/error/ProblemDetailCreator.java +++ b/src/main/java/capstone/relation/global/exception/ProblemDetailCreator.java @@ -1,4 +1,4 @@ -package capstone.relation.global.error; +package capstone.relation.global.exception; import java.net.URI; diff --git a/src/main/java/capstone/relation/global/error/ValidationError.java b/src/main/java/capstone/relation/global/exception/ValidationError.java similarity index 88% rename from src/main/java/capstone/relation/global/error/ValidationError.java rename to src/main/java/capstone/relation/global/exception/ValidationError.java index adcbc66..4fb8870 100644 --- a/src/main/java/capstone/relation/global/error/ValidationError.java +++ b/src/main/java/capstone/relation/global/exception/ValidationError.java @@ -1,4 +1,4 @@ -package capstone.relation.global.error; +package capstone.relation.global.exception; import org.springframework.validation.FieldError; diff --git a/src/main/resources/static/meeting/js/main.js b/src/main/resources/static/meeting/js/main.js index 20b4f50..d2d77ee 100644 --- a/src/main/resources/static/meeting/js/main.js +++ b/src/main/resources/static/meeting/js/main.js @@ -46,7 +46,7 @@ function connect() { }) .then(gotStream) .catch(function (e) { - alert('getUserMedia() error: ' + e.name); + alert('getUserMedia() exception: ' + e.name); }); stompClient.subscribe('/topic/' + WORKSPACE_ID + '/meetingRoomList', function (greeting) { updateRoomList(JSON.parse(greeting.body)); @@ -205,7 +205,7 @@ function handleIceRequest(message) { } function handleCreateOfferError(event) { - console.log('createOffer() error: ', event); + console.log('createOffer() exception: ', event); } function setLocalAndSendAnswer(sessionDescription, userId) { diff --git a/src/main/resources/static/rtc/v2/main.js b/src/main/resources/static/rtc/v2/main.js index 714ba3c..aec78dc 100644 --- a/src/main/resources/static/rtc/v2/main.js +++ b/src/main/resources/static/rtc/v2/main.js @@ -38,7 +38,7 @@ function gotLocalMediaStream(mediaStream) { callButton.disabled = false; // Enable call button. } -// Handles error by logging a message to the console. +// Handles exception by logging a message to the console. function handleLocalMediaStreamError(error) { trace(`navigator.getUserMedia error: ${error.toString()}.`); } @@ -123,7 +123,7 @@ function handleConnectionChange(event) { `${peerConnection.iceConnectionState}.`); } -// Logs error when setting session description fails. +// Logs exception when setting session description fails. function setSessionDescriptionError(error) { trace(`Failed to create session description: ${error.toString()}.`); } diff --git a/src/main/resources/static/rtc/v4/js/main.js b/src/main/resources/static/rtc/v4/js/main.js index 725f73f..e03e22b 100644 --- a/src/main/resources/static/rtc/v4/js/main.js +++ b/src/main/resources/static/rtc/v4/js/main.js @@ -99,7 +99,7 @@ navigator.mediaDevices.getUserMedia({ }) .then(gotStream) .catch(function (e) { - alert('getUserMedia() error: ' + e.name); + alert('getUserMedia() exception: ' + e.name); }); function gotStream(stream) { @@ -173,7 +173,7 @@ function handleIceCandidate(event) { } function handleCreateOfferError(event) { - console.log('createOffer() error: ', event); + console.log('createOffer() exception: ', event); } function doCall() { diff --git a/src/test/java/capstone/relation/global/error/ProblemDetailCreatorTest.java b/src/test/java/capstone/relation/global/exception/ProblemDetailCreatorTest.java similarity index 95% rename from src/test/java/capstone/relation/global/error/ProblemDetailCreatorTest.java rename to src/test/java/capstone/relation/global/exception/ProblemDetailCreatorTest.java index a138115..aaebbcf 100644 --- a/src/test/java/capstone/relation/global/error/ProblemDetailCreatorTest.java +++ b/src/test/java/capstone/relation/global/exception/ProblemDetailCreatorTest.java @@ -1,4 +1,4 @@ -package capstone.relation.global.error; +package capstone.relation.global.exception; import static org.junit.jupiter.api.Assertions.*;