public function getCode($type = 'default')
    {
        $code = $this->exception->getCode();
        if (empty($this->exception->getCode())) {
            $code = config($this->configFile.'.codes.'.$type);
        }

        return $code;
    }
public function getCode($type = 'default')
    {
        $code = $this->exception->getCode();
        if (empty($this->exception->getCode())) {
            $code = config($this->configFile.'.codes.'.$type);
        }

        return $code;
    }
public function getCode ( $ type = 'default' ) { $ code = $ this -> exception -> getCode ( ) ; if ( empty ( $ this -> exception -> getCode ( ) ) ) { $ code = config ( $ this -> configFile . '.codes.' . $ type ) ; } return $ code ; }
Get error code. If code is empty from config file based on type.

@param  string $type Code type from config file
@return int
Get error code . If code is empty from config file based on type .