!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/wataxi.picotech.app/public_html/app/NotificationChannels/Expo/Exceptions/   drwxr-xr-x
Free 26.61 GB of 117.98 GB (22.55%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     CouldNotSendNotification.php (3.18 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace App\NotificationChannels\Expo\Exceptions;

use 
Exception;
use 
GuzzleHttp\Exception\ClientException;

class 
CouldNotSendNotification extends \Exception
{
    
/**
     * Expo responded with an error.
     *
     * @param $response
     * @return static
     */
    
public static function serviceRespondedWithAnError($response)
    {
        return new static(
'Expo responded with an error: `'.$response->getBody()->getContents().'`');
    }

    
/**
     * Thrown on a generic error.
     *
     * @param mixed $notification
     * @return static
     */
    
public static function genericMessage($message)
    {
        return new static(
$message);
    }

    
/**
     * Thrown if a notification instance does not implement a toExpo() method, but is
     * attempting to be delivered via the Expo notification channel.
     *
     * @param mixed $notification
     * @return static
     */
    
public static function undefinedMethod($notification)
    {
        return new static(
            
'Notification of class: '.get_class($notification)
            .
' must define a `toExpo()` method in order to send via Expo'
        
);
    }

    
/**
     * Thrown if a notification instance's `toExpo()` method,
     * does not return an instance of `\NotificationChannels\Expo\ExpoMessage`.
     *
     * @param mixed $notification
     * @return static
     */
    
public static function couldNotCreateMessage($notification)
    {
        return new static(
            
'Notification of class: '.get_class($notification)
            .
' `toExpo()` method did not return an instance of `\NotificationChannels\Expo\ExpoMessage`'
        
);
    }

    
/**
     * Thrown if a notifiable instance's `routeNotificationFor` method does not return a
     * valid Expo push token.
     *
     * @param mixed $notifiable
     * @return static
     */
    
public static function noValidDestination($notifiable)
    {
        return new static(
            
'Notifiable of class: '.get_class($notifiable)
            .
' `routeNotificationFor()` method did not return a valid Expo Push Token'
        
);
    }

    
/**
     * Thrown if a 400-level Http error was encountered whilst attempting to deliver the
     * notification.
     *
     * @param ClientException $exception
     * @return static
     */
    
public static function clientError(ClientException $exception)
    {
        if (! 
$exception->hasResponse()) {
            return new static(
'Expo responded with an error but no response body was available');
        }

        
$statusCode $exception->getResponse()->getStatusCode();
        
$description $exception->getMessage();

        return new static(
            
"Failed to send Expo notification, encountered client error: `{$statusCode} - {$description}`"
        
);
    }

    
/**
     * Thrown if an unexpected exception was encountered whilst attempting to deliver the
     * notification.
     *
     * @param Exception $exception
     * @return static
     */
    
public static function unexpectedException(Exception $exception)
    {
        return new static(
            
'Failed to send Expo notification, unexpected exception encountered: `'.$exception->getMessage().'`',
            
0,
            
$exception
        
);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0036 ]--