Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.AkibanInternalException


            for (String include : includes) {
                scanDirectory(results, include);
            }
            return results;
        } catch (Exception e) {
            throw new AkibanInternalException("while looking for classes that contain functions", e);
        }
    }
View Full Code Here


    }

    private void scanDirectory(Set<Class<?>> results, String baseUrl) throws IOException, ClassNotFoundException, URISyntaxException {
        URL asUrl = ConfigurableClassFinder.class.getClassLoader().getResource(baseUrl);
        if (asUrl == null)
            throw new AkibanInternalException("base url not found: " + baseUrl);
        Navigator navigator;
        try {
            navigator = Navigator.valueOf(asUrl.getProtocol().toUpperCase());
        }
        catch (IllegalArgumentException e) {
            throw new AkibanInternalException("unrecognized resource type " + asUrl.getProtocol() + " for " + asUrl);
        }
        for (String filePath : navigator.getFiles(baseUrl)) {
            assert filePath.endsWith(".class") : filePath;
            int trimLength = filePath.length() - ".class".length();
            String className = filePath.replace('/', '.').substring(0, trimLength);
View Full Code Here

                break;
            case INT_64:
                target.putInt64(val);
                break;
            default:
                throw new AkibanInternalException("Cannot put LONG into " + target.getType());
        }
    }
View Full Code Here

            JsonGenerator generator = pretty ? createPrettyJsonGenerator(str) : createJsonGenerator(str);
            generate(generator, explainer);
            generator.flush();
        }
        catch (IOException ex) {
            throw new AkibanInternalException("Error writing to string", ex);
        }
        return str.toString();
    }
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.AkibanInternalException

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.