|
Java example source code file (XSException.java)
The XSException.java Java example source code
/*
* reserved comment block
* DO NOT REMOVE OR ALTER!
*/
/*
* Copyright 2003,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.sun.org.apache.xerces.internal.xs;
/**
* The XML Schema API operations only raise exceptions in "exceptional"
* circumstances, i.e., when an operation is impossible to perform (either
* for logical reasons, because data is lost, or because the implementation
* has become unstable).
* <p>Implementations should raise other exceptions under other circumstances.
* <p>Some languages and object systems do not support the concept of
* exceptions. For such systems, error conditions may be indicated using
* native error reporting mechanisms. For some bindings, for example,
* methods may return error codes similar to those listed in the
* corresponding method descriptions.
*/
public class XSException extends RuntimeException {
/** Serialization version. */
static final long serialVersionUID = 3111893084677917742L;
public XSException(short code, String message) {
super(message);
this.code = code;
}
public short code;
// ExceptionCode
/**
* If the implementation does not support the requested type of object or
* operation.
*/
public static final short NOT_SUPPORTED_ERR = 1;
/**
* If index or size is negative, or greater than the allowed value
*/
public static final short INDEX_SIZE_ERR = 2;
}
Other Java examples (source code examples)Here is a short list of links related to this Java XSException.java source code file: |
| ... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2024 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.