Org xml sax saxparseexception android

Org xml sax saxparseexception android

This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. See http://www.saxproject.org for further information.

This exception may include information for locating the error in the original XML document, as if it came from a Locator object. Note that although the application will receive a SAXParseException as the argument to the handlers in the ErrorHandler interface, the application is not actually required to throw the exception; instead, it can simply read the information in it and take a different action.

Since this exception is a subclass of SAXException , it inherits the ability to wrap another exception.

Constructor Summary

Constructors
Constructor and Description
SAXParseException(String message, Locator locator)
SAXParseException(String message, Locator locator, Exception e) SAXParseException(String message, String publicId, String systemId, int lineNumber, int columnNumber) SAXParseException(String message, String publicId, String systemId, int lineNumber, int columnNumber, Exception e)

Method Summary

Methods
Modifier and Type Method and Description
int getColumnNumber()

Methods inherited from class org.xml.sax.SAXException

Methods inherited from class java.lang.Throwable

Methods inherited from class java.lang.Object

Constructor Detail

SAXParseException

This constructor is especially useful when an application is creating its own exception from within a ContentHandler callback.

SAXParseException

This constructor is especially useful when an application is creating its own exception from within a ContentHandler callback, and needs to wrap an existing exception that is not a subclass of SAXException .

SAXParseException

This constructor is most useful for parser writers.

All parameters except the message are as if they were provided by a Locator . For example, if the system identifier is a URL (including relative filename), the caller must resolve it fully before creating the exception.

SAXParseException

This constructor is most useful for parser writers who need to wrap an exception that is not a subclass of SAXException .

All parameters except the message and exception are as if they were provided by a Locator . For example, if the system identifier is a URL (including relative filename), the caller must resolve it fully before creating the exception.

Method Detail

getPublicId

getSystemId

If the system identifier is a URL, it will have been resolved fully.

getLineNumber

The first line is line 1.

getColumnNumber

The first column in a line is position 1.

toString

  • Summary:
  • Nested |
  • Field |
  • Constr |
  • Method
  • Detail:
  • Field |
  • Constr |
  • Method

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.

Источник

Org xml sax saxparseexception android

Encapsulate an XML parse error or warning.

This module, both source code and documentation, is in the Public Domain, and comes with NO WARRANTY. See http://www.saxproject.org for further information.

This exception may include information for locating the error in the original XML document, as if it came from a Locator object. Note that although the application will receive a SAXParseException as the argument to the handlers in the ErrorHandler interface, the application is not actually required to throw the exception; instead, it can simply read the information in it and take a different action.

Since this exception is a subclass of SAXException , it inherits the ability to wrap another exception.

Since: SAX 1.0 Version: 2.0.1 (sax2r2) Author: David Megginson See Also: SAXException , Locator , ErrorHandler , Serialized Form

Constructor Summary
SAXParseException (java.lang.String message, Locator locator)
Create a new SAXParseException from a message and a Locator.
SAXParseException (java.lang.String message, Locator locator, java.lang.Exception e)
Wrap an existing exception in a SAXParseException.
SAXParseException (java.lang.String message, java.lang.String publicId, java.lang.String systemId, int lineNumber, int columnNumber)
Create a new SAXParseException.
SAXParseException (java.lang.String message, java.lang.String publicId, java.lang.String systemId, int lineNumber, int columnNumber, java.lang.Exception e)
Create a new SAXParseException with an embedded exception.
Method Summary
int getColumnNumber ()
The column number of the end of the text where the exception occurred.
int getLineNumber ()
The line number of the end of the text where the exception occurred.
java.lang.String getPublicId ()
Get the public identifier of the entity where the exception occurred.
java.lang.String getSystemId ()
Get the system identifier of the entity where the exception occurred.
Methods inherited from class org.xml.sax.SAXException
getException, getMessage, toString
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

SAXParseException

This constructor is especially useful when an application is creating its own exception from within a ContentHandler callback.

Parameters: message — The error or warning message. locator — The locator object for the error or warning (may be null). See Also: Locator

SAXParseException

This constructor is especially useful when an application is creating its own exception from within a ContentHandler callback, and needs to wrap an existing exception that is not a subclass of SAXException .

Parameters: message — The error or warning message, or null to use the message from the embedded exception. locator — The locator object for the error or warning (may be null). e — Any exception. See Also: Locator

SAXParseException

This constructor is most useful for parser writers.

All parameters except the message are as if they were provided by a Locator . For example, if the system identifier is a URL (including relative filename), the caller must resolve it fully before creating the exception.

Parameters: message — The error or warning message. publicId — The public identifier of the entity that generated the error or warning. systemId — The system identifier of the entity that generated the error or warning. lineNumber — The line number of the end of the text that caused the error or warning. columnNumber — The column number of the end of the text that cause the error or warning.

SAXParseException

This constructor is most useful for parser writers who need to wrap an exception that is not a subclass of SAXException .

All parameters except the message and exception are as if they were provided by a Locator . For example, if the system identifier is a URL (including relative filename), the caller must resolve it fully before creating the exception.

Parameters: message — The error or warning message, or null to use the message from the embedded exception. publicId — The public identifier of the entity that generated the error or warning. systemId — The system identifier of the entity that generated the error or warning. lineNumber — The line number of the end of the text that caused the error or warning. columnNumber — The column number of the end of the text that cause the error or warning. e — Another exception to embed in this one.

Method Detail

getPublicId

Returns: A string containing the public identifier, or null if none is available. See Also: Locator.getPublicId()

getSystemId

If the system identifier is a URL, it will have been resolved fully.

Источник

SAXException Class

Definition

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Encapsulate a general SAX error or warning.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

Create a new SAXException.

Create a new SAXException.

A constructor used when creating managed representations of JNI objects; called by the runtime.

Create a new SAXException.

Create a new SAXException.

Fields

Properties

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

(Inherited from Throwable) Class (Inherited from Throwable) Exception

Return the embedded exception, if any.

The handle to the underlying Android instance.

(Inherited from Throwable) JniIdentityHashCode (Inherited from Throwable) JniPeerMembers LocalizedMessage

Creates a localized description of this throwable.

(Inherited from Throwable) Message

Returns the detail message string of this throwable.

(Inherited from Throwable) PeerReference (Inherited from Throwable) StackTrace (Inherited from Throwable) ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Methods

Appends the specified exception to the exceptions that were suppressed in order to deliver this exception.

(Inherited from Throwable) Dispose() (Inherited from Throwable) Dispose(Boolean) (Inherited from Throwable) FillInStackTrace()

Fills in the execution stack trace.

(Inherited from Throwable) GetStackTrace()

Provides programmatic access to the stack trace information printed by #printStackTrace() .

(Inherited from Throwable) GetSuppressed()

Returns an array containing all of the exceptions that were suppressed, typically by the try -with-resources statement, in order to deliver this exception.

(Inherited from Throwable) InitCause(Throwable)

Initializes the cause of this throwable to the specified value.

(Inherited from Throwable) PrintStackTrace()

Prints this throwable and its backtrace to the standard error stream.

(Inherited from Throwable) PrintStackTrace(PrintStream)

Prints this throwable and its backtrace to the standard error stream.

(Inherited from Throwable) PrintStackTrace(PrintWriter)

Prints this throwable and its backtrace to the standard error stream.

(Inherited from Throwable) SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Throwable) SetStackTrace(StackTraceElement[])

Sets the stack trace elements that will be returned by #getStackTrace() and printed by #printStackTrace() and related methods.

(Inherited from Throwable) ToString() (Inherited from Throwable) UnregisterFromRuntime() (Inherited from Throwable)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Throwable)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Throwable)
IJavaPeerable.Finalized() (Inherited from Throwable)
IJavaPeerable.JniManagedPeerState (Inherited from Throwable)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Throwable)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Throwable)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Throwable)

Extension Methods

Performs an Android runtime-checked type conversion.

Источник

Читайте также:  Команда для андроид для калибровки аккумулятора
Оцените статью