Package com.caucho.quercus

Examples of com.caucho.quercus.QuercusException


      byte []digest = md.digest();

      return hashToValue(env, digest, rawOutput);
    } catch (Exception e) {
      throw new QuercusException(e);
    }
  }
View Full Code Here


            is.close();
        } catch (IOException e) {
        }
      }
    } catch (Exception e) {
      throw new QuercusException(e);
    }
  }
View Full Code Here

          return item.getBlock().execute(env);
        }
      }

      throw new QuercusException(e);
    }
  }
View Full Code Here

        Env.getCurrent().addCleanup(new EnvCloseable(is));

        return is;
      } catch (IOException e) {
        throw new QuercusException(e);
      }
    }
    else
      return super.toInputStream();
  }
View Full Code Here

          if (isReference) {
            _marshalArgs[i] = marshalFactory.createReference();

            if (! Value.class.equals(argType)
                && ! Var.class.equals(argType)) {
              throw new QuercusException(L.l("reference must be Value or Var for {0}",
                                             _name));
            }
          }
          else if (isPassThru) {
            _marshalArgs[i] = marshalFactory.createValuePassThru();
       
            if (! Value.class.equals(argType)) {
              throw new QuercusException(L.l("pass thru must be Value for {0}",
                                             _name));
            }
          }
          else
            _marshalArgs[i] = marshalFactory.create(argType, isNotNull);
View Full Code Here

      if (e1 instanceof QuercusException)
        throw (QuercusException) e1;

      if (e1 instanceof QuercusException)
        throw (QuercusException) e1;
      throw new QuercusException(getStringizedMethodName()+ ": " + e1.getMessage(), e1);
    } catch (Exception e) {
      throw new QuercusException(getStringizedMethodName() + ": " + e.getMessage(), e);
    }
  }
View Full Code Here

 
  public static Regexp createRegexp(StringValue regexpValue)
  {
    try {
      if (regexpValue.length() < 2) {
        throw new QuercusException(L.l("Regexp pattern must have opening and closing delimiters"));
      }

      Regexp regexp = _regexpCache.get(regexpValue);
     
      if (regexp == null)
        regexp = new Regexp(regexpValue);
     
      _regexpCache.put(regexpValue, regexp);

      return regexp;
    }
    catch (IllegalRegexpException e) {
      throw new QuercusException(e);
    }
  }
View Full Code Here

        try {
          if (evalString.length() > 0) { // php/152z
            result = result.append(env.evalCode(evalString.toString()));
          }
        } catch (IOException e) {
          throw new QuercusException(e);
        }
       
      } else {
        for (int i = 0; i < replacementLen; i++) {
          Replacement replacement = replacementProgram.get(i);
View Full Code Here

            i++;
          }

          if (digit != '}') {
            env.warning(L.l("bad regexp {0}", replacement));
            throw new QuercusException("bad regexp");
          }

          if (text.length() > 0)
            program.add(new TextReplacement(text));
View Full Code Here

    catch (UnsupportedEncodingException e) {
      log.log(Level.FINE, e.getMessage(), e);
      env.warning(L.l(e.getMessage()));
    }
    catch (NoClassDefFoundError e) {
      throw new QuercusException(L.l("mime_decode requires javamail.jar"));
    }

    return BooleanValue.FALSE;
  }
View Full Code Here

TOP

Related Classes of com.caucho.quercus.QuercusException

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.