     1: <?php
     2:
     3: namespace SMSApi\Exception;
     4:
     5: class SmsapiException extends \Exception {
     6:
     7:     public static function isClientError( $code ) {
     8:
     9:
    10:         switch ( $code ) {
    11:             case 101:
    12:             case 102:
    13:             case 103:
    14:             case 105:
    15:             case 110:
    16:             case 1000:
    17:             case 1001:
    18:                 return true;
    19:         }
    20:
    21:         return false;
    22:     }
    23:
    24:     public static function isHostError( $code ) {
    25:
    26:         switch ( $code ) {
    27:             case 8:
    28:             case 201:
    29:             case 666:
    30:             case 999:
    31:                 return true;
    32:         }
    33:
    34:         return false;
    35:     }
    36:
    37: }
    38: