APISonar


org.eclipse.che.core.internal.utils.Policy.log

> org > eclipse > che > core > internal > utils > Policy > log
org APIs eclipse APIs che APIs core APIs internal APIs utils APIs Policy APIs log APIs

Example 1
private void fail(CoreException e) {
    Policy.log(
        e.getStatus().getSeverity(),
        "An internal error occurred while accumulating a change description.",
        e); // $NON-NLS-1$
  }
Example 2
private IResource[] getRootResources(IResourceDelta root) {
		final ChangeDescription changeDescription = new ChangeDescription();
		try {
			root.accept(new IResourceDeltaVisitor() {
				public boolean visit(IResourceDelta delta) {
					return changeDescription.recordChange(delta);
				}
			});
		} catch (CoreException e) {
			// Shouldn't happen since the ProposedResourceDelta accept doesn't throw an
			// exception and our visitor doesn't either
			Policy.log(IStatus.ERROR, "Internal error", e); //$NON-NLS-1$
		}
		return changeDescription.getRootResources();
	}