You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
							|  |  |  | // Copyright © 2023 Rangeproof Pty Ltd. All rights reserved. | 
					
						
							|  |  |  | // | 
					
						
							|  |  |  | // stringlint:disable | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import Foundation | 
					
						
							|  |  |  | import SessionMessagingKit | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | enum NotificationError: Error, CustomStringConvertible { | 
					
						
							|  |  |  |     case processing(PushNotificationAPI.ProcessResult) | 
					
						
							|  |  |  |     case messageProcessing | 
					
						
							|  |  |  |     case ignorableMessage | 
					
						
							|  |  |  |     case messageHandling(MessageReceiverError) | 
					
						
							|  |  |  |     case other(Error) | 
					
						
							|  |  |  |      | 
					
						
							|  |  |  |     public var description: String { | 
					
						
							|  |  |  |         switch self { | 
					
						
							|  |  |  |             case .processing(let result): return "Failed to process notification (\(result)) (NotificationError.processing)." | 
					
						
							|  |  |  |             case .messageProcessing: return "Failed to process message (NotificationError.messageProcessing)." | 
					
						
							|  |  |  |             case .ignorableMessage: return "Ignorable message (NotificationError.ignorableMessage)." | 
					
						
							|  |  |  |             case .messageHandling(let error): return "Failed to handle message (\(error)) (NotificationError.messageHandling)." | 
					
						
							|  |  |  |             case .other(let error): return "Unknown error occurred: \(error) (NotificationError.other)." | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | } |