mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			229 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			229 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # frozen_string_literal: true
 | |
| 
 | |
| class CustomExceptions::Base < ::StandardError
 | |
|   def to_hash
 | |
|     {
 | |
|       message: message
 | |
|     }
 | |
|   end
 | |
| 
 | |
|   def http_status
 | |
|     403
 | |
|   end
 | |
| 
 | |
|   def initialize(data)
 | |
|     @data = data
 | |
|     super()
 | |
|   end
 | |
| end
 | 
