diff --git a/openvidu-client/.classpath b/openvidu-client/.classpath
index af1430be..5e8a55fe 100644
--- a/openvidu-client/.classpath
+++ b/openvidu-client/.classpath
@@ -10,6 +10,7 @@
+
diff --git a/openvidu-client/src/main/java/io/openvidu/client/OpenViduException.java b/openvidu-client/src/main/java/io/openvidu/client/OpenViduException.java
index 6a89ce15..09f0d6be 100644
--- a/openvidu-client/src/main/java/io/openvidu/client/OpenViduException.java
+++ b/openvidu-client/src/main/java/io/openvidu/client/OpenViduException.java
@@ -20,59 +20,60 @@ package io.openvidu.client;
import org.kurento.jsonrpc.JsonRpcErrorException;
public class OpenViduException extends JsonRpcErrorException {
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
- public static enum Code {
- GENERIC_ERROR_CODE(999),
+ public static enum Code {
+ GENERIC_ERROR_CODE(999),
- TRANSPORT_ERROR_CODE(803), TRANSPORT_RESPONSE_ERROR_CODE(802), TRANSPORT_REQUEST_ERROR_CODE(
- 801),
+ TRANSPORT_ERROR_CODE(803), TRANSPORT_RESPONSE_ERROR_CODE(802), TRANSPORT_REQUEST_ERROR_CODE(801),
- MEDIA_MUTE_ERROR_CODE(307), MEDIA_NOT_A_WEB_ENDPOINT_ERROR_CODE(
- 306), MEDIA_RTP_ENDPOINT_ERROR_CODE(305), MEDIA_WEBRTC_ENDPOINT_ERROR_CODE(
- 304), MEDIA_ENDPOINT_ERROR_CODE(
- 303), MEDIA_SDP_ERROR_CODE(302), MEDIA_GENERIC_ERROR_CODE(301),
+ MEDIA_MUTE_ERROR_CODE(307), MEDIA_NOT_A_WEB_ENDPOINT_ERROR_CODE(306), MEDIA_RTP_ENDPOINT_ERROR_CODE(
+ 305), MEDIA_WEBRTC_ENDPOINT_ERROR_CODE(
+ 304), MEDIA_ENDPOINT_ERROR_CODE(303), MEDIA_SDP_ERROR_CODE(302), MEDIA_GENERIC_ERROR_CODE(301),
- ROOM_CANNOT_BE_CREATED_ERROR_CODE(204), ROOM_CLOSED_ERROR_CODE(203), ROOM_NOT_FOUND_ERROR_CODE(
- 202), ROOM_GENERIC_ERROR_CODE(201),
+ ROOM_CANNOT_BE_CREATED_ERROR_CODE(204), ROOM_CLOSED_ERROR_CODE(203), ROOM_NOT_FOUND_ERROR_CODE(
+ 202), ROOM_GENERIC_ERROR_CODE(201),
- USER_NOT_STREAMING_ERROR_CODE(105), EXISTING_USER_IN_ROOM_ERROR_CODE(
- 104), USER_CLOSED_ERROR_CODE(
- 103), USER_NOT_FOUND_ERROR_CODE(102), USER_GENERIC_ERROR_CODE(101),
-
- USER_UNAUTHORIZED_ERROR_CODE(401), ROLE_NOT_FOUND_ERROR_CODE(402),
- SESSIONID_CANNOT_BE_CREATED_ERROR_CODE(403), TOKEN_CANNOT_BE_CREATED_ERROR_CODE(404),
-
- USER_METADATA_FORMAT_INVALID_ERROR_CODE(500),
-
- SIGNAL_FORMAT_INVALID_ERROR_CODE(600), SIGNAL_TO_INVALID_ERROR_CODE(601),
- SIGNAL_MESSAGE_INVALID_ERROR_CODE(602);
+ USER_NOT_STREAMING_ERROR_CODE(105), EXISTING_USER_IN_ROOM_ERROR_CODE(104), USER_CLOSED_ERROR_CODE(
+ 103), USER_NOT_FOUND_ERROR_CODE(102), USER_GENERIC_ERROR_CODE(101),
- private int value;
+ USER_UNAUTHORIZED_ERROR_CODE(401), ROLE_NOT_FOUND_ERROR_CODE(402), SESSIONID_CANNOT_BE_CREATED_ERROR_CODE(
+ 403), TOKEN_CANNOT_BE_CREATED_ERROR_CODE(404),
- private Code(int value) {
- this.value = value;
- }
+ USER_METADATA_FORMAT_INVALID_ERROR_CODE(500),
- public int getValue() {
- return this.value;
- }
- }
+ SIGNAL_FORMAT_INVALID_ERROR_CODE(600), SIGNAL_TO_INVALID_ERROR_CODE(601), SIGNAL_MESSAGE_INVALID_ERROR_CODE(
+ 602),
- private Code code = Code.GENERIC_ERROR_CODE;
+ RECORDING_FILE_EMPTY_ERROR(707), RECORDING_DELETE_ERROR_CODE(706), RECORDING_LIST_ERROR_CODE(
+ 705), RECORDING_STOP_ERROR_CODE(704), RECORDING_START_ERROR_CODE(
+ 703), RECORDING_REPORT_ERROR_CODE(702), RECORDING_COMPLETION_ERROR_CODE(701);
- public OpenViduException(Code code, String message) {
- super(code.getValue(), message);
- this.code = code;
- }
+ private int value;
- public int getCodeValue() {
- return code.getValue();
- }
+ private Code(int value) {
+ this.value = value;
+ }
- @Override
- public String toString() {
- return "CODE: " + getCodeValue() + ". EXCEPTION: " + super.toString();
- }
+ public int getValue() {
+ return this.value;
+ }
+ }
+
+ private Code code = Code.GENERIC_ERROR_CODE;
+
+ public OpenViduException(Code code, String message) {
+ super(code.getValue(), message);
+ this.code = code;
+ }
+
+ public int getCodeValue() {
+ return code.getValue();
+ }
+
+ @Override
+ public String toString() {
+ return "CODE: " + getCodeValue() + ". EXCEPTION: " + super.toString();
+ }
}