URIException.java revision 2362
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Copyright (c) 2000, 2001, Oracle and/or its affiliates. All rights reserved.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * This code is free software; you can redistribute it and/or modify it
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * under the terms of the GNU General Public License version 2 only, as
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * published by the Free Software Foundation. Oracle designates this
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * particular file as subject to the "Classpath" exception as provided
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * by Oracle in the LICENSE file that accompanied this code.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * This code is distributed in the hope that it will be useful, but WITHOUT
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * version 2 for more details (a copy is included in the LICENSE file that
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * accompanied this code).
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * You should have received a copy of the GNU General Public License version
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * 2 along with this work; if not, write to the Free Software Foundation,
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * or visit www.oracle.com if you need additional information or have any
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * questions.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Interface URIException is a mixin interface which a subclass of {@link
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * PrintException PrintException} can implement to report an error condition
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * involving a URI address. The Print Service API does not define any print
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * exception classes that implement interface URIException, that being left to
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * the Print Service implementor's discretion.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenkpublic interface URIException {
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Indicates that the printer cannot access the URI address.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * For example, the printer might report this error if it goes to get
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * the print data and cannot even establish a connection to the
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * URI address.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Indicates that the printer does not support the URI
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * scheme ("http", "ftp", etc.) in the URI address.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public static final int URISchemeNotSupported = 2;
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Indicates any kind of problem not specifically identified
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * by the other reasons.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Return the URI.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * @return the URI that is the cause of this exception.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * Return the reason for the event.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk * @return one of the predefined reasons enumerated in this interface.
c1350cf5bc50458ba79cc93ff9e0e5fe3f1aeeb0jeff.schenk public int getReason();