 
       switch err.name
 
-        when ComputeErrors.TimeoutError
+        when Error.TimeoutError
 
           safeToSuspend = task is 'info'
           retryIfNeeded task, machine
           info "Cancelling... #{task} ..."
           call.cancel()
 
-        when ComputeErrors.KiteError
-
-          if err.code is ComputeErrors.Pending
+        when Error.KiteError
+
+          if err.code is Error.Pending
             retried = retryIfNeeded task, machine
             safeToSuspend = yes
           else


  errorHandler: (call, task, machine)->

    ComputeErrors = {
      "TimeoutError", "KiteError", Pending: "107"
    }

    { timeout }   = ComputeController

    retryIfNeeded = KD.utils.throttle 500, (task, machine)=>


  @providers = KD.config.providers

  @timeout = 30000

  @Error = {
    'TimeoutError', 'KiteError',
    Pending: '107', NotVerified: '500'
  }

  constructor:->

