| 
						
						
							
								
							
						
						
					 | 
					@ -3,19 +3,20 @@ | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					///
 | 
					 | 
					 | 
					///
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					#[macro_export] | 
					 | 
					 | 
					#[macro_export] | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					macro_rules! err { | 
					 | 
					 | 
					macro_rules! err { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    ($err:expr, $err_desc:expr, $msg:expr) => {{ | 
					 | 
					 | 
					    ($err:expr, $msg:expr) => {{ | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					        println!("ERROR: {}", $msg); | 
					 | 
					 | 
					        println!("ERROR: {}", $msg); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        err_json!(json!({ | 
					 | 
					 | 
					        err_json!(json!({ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          "error": $err, | 
					 | 
					 | 
					          "Message": $err, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          "error_description": $err_desc, | 
					 | 
					 | 
					          "ValidationErrors": { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          "ErrorModel": { | 
					 | 
					 | 
					            "": [$msg,], | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            "Message": $msg, | 
					 | 
					 | 
					          }, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            "ValidationErrors": null, | 
					 | 
					 | 
					          "ExceptionMessage": null, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            "Object": "error" | 
					 | 
					 | 
					          "ExceptionStackTrace": null, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          } | 
					 | 
					 | 
					          "InnerExceptionMessage": null, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          "Object": "error", | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        })) | 
					 | 
					 | 
					        })) | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }}; | 
					 | 
					 | 
					    }}; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    ($msg:expr) => { err!("default_error", "default_error_description", $msg) } | 
					 | 
					 | 
					    ($msg:expr) => { err!("The model state is invalid", $msg) } | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					#[macro_export] | 
					 | 
					 | 
					#[macro_export] | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |