Example #1
0
 public static MyError BadAttributeError(PyObj pyObj, IdentifierSegment identifierSegment)
 {
     return(new MyError(String.Format("El atributo: {0} no existe en el tipo: {1}",
                                      identifierSegment.Id,
                                      TypeConstants.GetMyTypeName(pyObj.GetMyType()))
                        ));
 }
Example #2
0
 public static MyError BadProcedureError(PyObj pyObj, ProcedureSegment procedureSegment)
 {
     return(new MyError(String.Format("La funcion o metodo: {0} con: {1} argumentos no es una funcion o metodo valida para el tipo: {2}",
                                      procedureSegment.Id,
                                      procedureSegment.CountArguments,
                                      TypeConstants.GetMyTypeName(pyObj.GetMyType()))
                        ));
 }
Example #3
0
            public static MyError BadIndexError(PyObj pyObj, IndexSegment indexSegment)
            {
                var indexValue = indexSegment.Index;

                return(new MyError("El indice: " + indexValue.MyToString() + " (" + TypeConstants.GetMyTypeName(indexValue.GetMyType()) + ") no es un indice valido para el tipo: " + TypeConstants.GetMyTypeName(pyObj.GetMyType()) + " valor: " + pyObj.MyToString()));;
            }