Package org.jboss.errai.codegen.framework.exception

Examples of org.jboss.errai.codegen.framework.exception.InvalidTypeException


        validType = true;
        break;
      }
    }
    if (!validType)
      throw new InvalidTypeException("Type not permitted in switch statements:" +
          switchExprStmt.getType().getFullyQualifiedName());
  }
View Full Code Here


          buf.append(ObjectBuilder.newInstanceOf(throwableType).withParameters(parameters).generate(context));
        }
        else {
          VariableReference exceptionVar = context.getVariable(exceptionVariableName);
          if (!exceptionVar.getType().isAssignableTo(Throwable.class)) {
            throw new InvalidTypeException("Variable " + exceptionVariableName + " is not a Throwable");
          }
          buf.append(exceptionVar.generate(context));
        }
        return buf.toString();
      }
View Full Code Here

TOP

Related Classes of org.jboss.errai.codegen.framework.exception.InvalidTypeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.