src/AwsClient.php
private function parseClass()
    {
        $klass = get_class($this);

        if ($klass === __CLASS__) {
            return ['', 'Aws\Exception\AwsException'];
        }

        $service = substr($klass, strrpos($klass, '\\') + 1, -6);

        return [
            strtolower($service),
            "Aws\\{$service}\\Exception\\{$service}Exception"
        ];
    }
private function parseClass()
    {
        $klass = get_class($this);

        if ($klass === __CLASS__) {
            return ['', 'Aws\Exception\AwsException'];
        }

        $service = substr($klass, strrpos($klass, '\\') + 1, -6);

        return [
            strtolower($service),
            "Aws\\{$service}\\Exception\\{$service}Exception"
        ];
    }
private function parseClass ( ) { $ klass = get_class ( $ this ) ; if ( $ klass === __CLASS__ ) { return [ '' , 'Aws\Exception\AwsException' ] ; } $ service = substr ( $ klass , strrpos ( $ klass , '\\' ) + 1 , - 6 ) ; return [ strtolower ( $ service ) , "Aws\\{$service}\\Exception\\{$service}Exception" ] ; }
Parse the class name and setup the custom exception class of the client
and return the "service" name of the client and "exception_class".

@return array
Parse the class name and setup the custom exception class of the client and return the service name of the client and exception_class .