Package org.zkoss.lang

Examples of org.zkoss.lang.SystemException$Aide


  private static final List myGetContextPaths() throws Exception {
    final String APP_XML = "/META-INF/application.xml";
    final List ctxroots = new LinkedList();
    final URL xmlURL = Locators.getDefault().getResource(APP_XML);
    if (xmlURL == null)
      throw new SystemException("File not found: "+APP_XML);

//    if (log.debugable()) log.debug("Parsing "+APP_XML);
    final Element root =
      new SAXBuilder(false,false,true).build(xmlURL).getRootElement();
View Full Code Here


        _extctx = getExtendletContext(ctx, ctxroot.substring(1));
        if (_extctx == null) {
          _svlctx = ctx.getContext(ctxroot);
          if (_svlctx == null)
            throw new SystemException("Context not found or not visible to "+ctx+": "+ctxroot);
        }
      } else {
        _svlctx = ctx;
        _uri = uri;
      }
View Full Code Here

    for (final Iterator it = data.keySet().iterator(); it.hasNext();) {
      final String key = (String)it.next();
      final int j = Strings.anyOf(key, notAllowed, 0);
      if (j < key.length()) { //found
        final char cc = key.charAt(j);
        throw new SystemException(MCommon.ILLEGAL_CHAR,
            cc + " (0x" + Integer.toHexString(cc) + ')');
      }
    }

    setData(Maps.toString(data, '"', ' '));
View Full Code Here

      for (int j = 0; j < sz; ++j)
        argTypes[j] = (Class)s.readObject();
      try {
        _m = cls.getMethod(nm, argTypes);
      } catch (NoSuchMethodException ex) {
        throw new SystemException("Method not found: "+nm+" with "+Objects.toString(argTypes));
      }
    }
  }
View Full Code Here

        return is != null ? new BufferedInputStream(is): null;
      }
      if (_file != null)
        return new BufferedInputStream(new FileInputStream(_file));
    } catch (java.io.IOException ex) {
      throw new SystemException("Unable to read "
        +(_url != null ? _url.toString(): _file.toString()), ex);
    }
    if (_isdata != null) return _isdata;
    return new ByteArrayInputStream(_data);
  }
View Full Code Here

          if (clientAnchor != null) break;
        }
      }
     
      if (clientAnchor == null) {
        throw new SystemException("Picture cannot find its anchor point. "+drawing.getImageFilePath());
      }
     
      final byte[] bytes = clientAnchor.getBytes();

      // The properties
View Full Code Here

TOP

Related Classes of org.zkoss.lang.SystemException$Aide

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.