mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 00:53:21 +00:00 
			
		
		
		
	GUACAMOLE-504: Add getHttpStatusCode() method to GuacamoleException class.
This commit is contained in:
		| @@ -68,5 +68,15 @@ public class GuacamoleException extends Exception { | ||||
|     public GuacamoleStatus getStatus() { | ||||
|         return GuacamoleStatus.SERVER_ERROR; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * Returns the numeric HTTP status code associated with this exception. | ||||
|      * | ||||
|      * @return | ||||
|      *     The numeric HTTP status code associated with this exception. | ||||
|      */ | ||||
|     public Integer getHttpStatusCode() { | ||||
|         return getStatus().getHttpStatusCode(); | ||||
|     } | ||||
|      | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user