manifold-lang / manifold-frontend

Frontend compiler for Manifold high-level language
GNU General Public License v3.0
6 stars 6 forks source link

VariableReferenceVertex: throw better exceptions #54

Open mtrberzi opened 9 years ago

mtrberzi commented 9 years ago
   } else if (incoming.size() == 0) {
      // not assigned
      // TODO we would like to throw this exception but we need a Variable
      //throw new VariableNotAssignedException(id);
      throw new UndefinedBehaviourError("variable '" + id + "' not assigned");
    } else { 
      // multiply assigned
      // TODO we would like to throw this exception but we need a Variable
      //throw new MultipleAssignmentException(id);
      throw new UndefinedBehaviourError("variable '" + id + 
          "' multiply assigned");
    }