package com.projectning.util;

public enum ErrorMessage {
	//JWT related
	INCORRECT_DATE_FORMAT(""),
	//HTTP related
	INCORRECT_PARAM("Request parameters incorrect"),
	//General
	RESOURCE_NOT_FOUND("The resources do not exist"),
	//User related
	USER_NOT_FOUND("User does not exist"),
	SESSION_EXPIRED("Session expired, please login again"),
	//Image related
	IMAGE_NOT_FOUND("Image does not exist"),
	INCORRECT_INTER_IMG_PATH("Internal error, image path not found"),
	INCORRECT_INTER_IMG_IO("Internal error, cannot write image file"),
	UNAUTHORIZED_DELETE("Cannot delete an image that is not yours"),
	//Relationship related
	ALREADY_REQUESTED("You have already sent a request to him/her"),
	ALREADY_FRIEND("You are already friend of him/her"),
	ALREADY_DENIED("You have already denied him/her");
	
	private final String msg;
	
	ErrorMessage(String msg) {
        this.msg = msg;
    }
	
	public String getMsg(){
		return msg;
	}

}

@@ -156,16 +156,17 @@
 ncorrect
+.
 %22),%0A%09//G
@@ -215,24 +215,25 @@
 do not exist
+.
 %22),%0A%09//User 
@@ -272,24 +272,25 @@
 es not exist
+.
 %22),%0A%09SESSION
@@ -334,16 +334,17 @@
 in again
+.
 %22),%0A%09//I
@@ -374,20 +374,182 @@
 _FOUND(%22
-Imag
+The image you are looking for does not exist.%22),%0A%09IMAGE_TYPE_NOT_FOUND(%22No image exists with the given type.%22),%0A%09NO_IMAGE_TO_DELETE(%22The image you are trying to delet
 e does n
@@ -556,16 +556,17 @@
 ot exist
+.
 %22),%0A%09INC
@@ -624,16 +624,17 @@
 ot found
+.
 %22),%0A%09INC
@@ -693,16 +693,17 @@
 age file
+.
 %22),%0A%09UNA
@@ -760,16 +760,17 @@
 ot yours
+.
 %22),%0A%09//R
@@ -843,32 +843,33 @@
 quest to him/her
+.
 %22),%0A%09ALREADY_FRI
@@ -906,16 +906,17 @@
  him/her
+.
 %22),%0A%09ALR
@@ -959,16 +959,17 @@
  him/her
+.
 %22);%0A%09%0A%09p

Update error message format