/* * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.model.repo.api; import com.google.common.annotations.Beta; import com.google.common.base.Preconditions; /** * Exception thrown when a the specified schema source is not available. */ @Beta public class MissingSchemaSourceException extends SchemaSourceException { private static final long serialVersionUID = 1L; private final SourceIdentifier id; public MissingSchemaSourceException(final String message, final SourceIdentifier id) { this(message, id, null); } public MissingSchemaSourceException(final String s, final SourceIdentifier id, final Throwable t) { super(s, t); this.id = Preconditions.checkNotNull(id); } public SourceIdentifier getSourceId() { return id; } }