Struct xpcom::interfaces::nsIScriptError
[−]
[src]
#[repr(C)]pub struct nsIScriptError { /* fields omitted */ }
interface nsIScriptError : nsIConsoleMessage
Methods
impl nsIScriptError
[src]
pub fn coerce<T: nsIScriptErrorCoerce>(&self) -> &T
[src]
Cast this nsIScriptError
to one of its base interfaces.
impl nsIScriptError
[src]
pub const errorFlag: i64
errorFlag: i64 = 0
/** pseudo-flag for default case */
pub const warningFlag: i64
warningFlag: i64 = 1
/** message is warning */
pub const exceptionFlag: i64
exceptionFlag: i64 = 2
/** exception was thrown for this case - exception-aware hosts can ignore */
pub const strictFlag: i64
strictFlag: i64 = 4
/** error or warning is due to strict option */
pub const infoFlag: i64
infoFlag: i64 = 8
/** just a log message */
pub unsafe fn GetErrorMessage(&self, aErrorMessage: &mut nsAString) -> nsresult
[src]
/**
* The error message without any context/line number information.
*
* @note nsIConsoleMessage.message will return the error formatted
* with file/line information.
*/
readonly attribute AString errorMessage;
pub unsafe fn GetSourceName(&self, aSourceName: &mut nsAString) -> nsresult
[src]
readonly attribute AString sourceName;
pub unsafe fn GetSourceLine(&self, aSourceLine: &mut nsAString) -> nsresult
[src]
readonly attribute AString sourceLine;
pub unsafe fn GetLineNumber(&self, aLineNumber: *mut uint32_t) -> nsresult
[src]
readonly attribute uint32_t lineNumber;
pub unsafe fn GetColumnNumber(&self, aColumnNumber: *mut uint32_t) -> nsresult
[src]
readonly attribute uint32_t columnNumber;
pub unsafe fn GetFlags(&self, aFlags: *mut uint32_t) -> nsresult
[src]
readonly attribute uint32_t flags;
pub unsafe fn GetCategory(&self, aCategory: *mut *const c_char) -> nsresult
[src]
/**
* Categories I know about -
* XUL javascript
* content javascript (both of these from nsDocShell, currently)
* system javascript (errors in JS components and other system JS)
*/
readonly attribute string category;
pub unsafe fn GetOuterWindowID(&self, aOuterWindowID: *mut uint64_t) -> nsresult
[src]
readonly attribute unsigned long long outerWindowID;
pub unsafe fn GetInnerWindowID(&self, aInnerWindowID: *mut uint64_t) -> nsresult
[src]
readonly attribute unsigned long long innerWindowID;
pub unsafe fn GetIsFromPrivateWindow(
&self,
aIsFromPrivateWindow: *mut bool
) -> nsresult
[src]
&self,
aIsFromPrivateWindow: *mut bool
) -> nsresult
readonly attribute boolean isFromPrivateWindow;
pub unsafe fn GetErrorMessageName(
&self,
aErrorMessageName: &mut nsAString
) -> nsresult
[src]
&self,
aErrorMessageName: &mut nsAString
) -> nsresult
/**
* The name of a template string, as found in js.msg, associated with the
* error message.
*/
attribute AString errorMessageName;
pub unsafe fn SetErrorMessageName(
&self,
aErrorMessageName: &nsAString
) -> nsresult
[src]
&self,
aErrorMessageName: &nsAString
) -> nsresult
/**
* The name of a template string, as found in js.msg, associated with the
* error message.
*/
attribute AString errorMessageName;
pub unsafe fn GetNotes(&self, aNotes: *mut *const nsIArray) -> nsresult
[src]
readonly attribute nsIArray notes;
pub unsafe fn Init(
&self,
message: &nsAString,
sourceName: &nsAString,
sourceLine: &nsAString,
lineNumber: uint32_t,
columnNumber: uint32_t,
flags: uint32_t,
category: *const c_char
) -> nsresult
[src]
&self,
message: &nsAString,
sourceName: &nsAString,
sourceLine: &nsAString,
lineNumber: uint32_t,
columnNumber: uint32_t,
flags: uint32_t,
category: *const c_char
) -> nsresult
void init (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in string category);
pub unsafe fn InitWithWindowID(
&self,
message: &nsAString,
sourceName: &nsAString,
sourceLine: &nsAString,
lineNumber: uint32_t,
columnNumber: uint32_t,
flags: uint32_t,
category: &nsACString,
innerWindowID: uint64_t
) -> nsresult
[src]
&self,
message: &nsAString,
sourceName: &nsAString,
sourceLine: &nsAString,
lineNumber: uint32_t,
columnNumber: uint32_t,
flags: uint32_t,
category: &nsACString,
innerWindowID: uint64_t
) -> nsresult
void initWithWindowID (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID);
pub unsafe fn InitWithSanitizedSource(
&self,
message: &nsAString,
sourceName: &nsAString,
sourceLine: &nsAString,
lineNumber: uint32_t,
columnNumber: uint32_t,
flags: uint32_t,
category: &nsACString,
innerWindowID: uint64_t
) -> nsresult
[src]
&self,
message: &nsAString,
sourceName: &nsAString,
sourceLine: &nsAString,
lineNumber: uint32_t,
columnNumber: uint32_t,
flags: uint32_t,
category: &nsACString,
innerWindowID: uint64_t
) -> nsresult
void initWithSanitizedSource (in AString message, in AString sourceName, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID);
pub unsafe fn InitWithSourceURI(
&self,
message: &nsAString,
sourceURI: *const nsIURI,
sourceLine: &nsAString,
lineNumber: uint32_t,
columnNumber: uint32_t,
flags: uint32_t,
category: &nsACString,
innerWindowID: uint64_t
) -> nsresult
[src]
&self,
message: &nsAString,
sourceURI: *const nsIURI,
sourceLine: &nsAString,
lineNumber: uint32_t,
columnNumber: uint32_t,
flags: uint32_t,
category: &nsACString,
innerWindowID: uint64_t
) -> nsresult
void initWithSourceURI (in AString message, in nsIURI sourceURI, in AString sourceLine, in uint32_t lineNumber, in uint32_t columnNumber, in uint32_t flags, in ACString category, in unsigned long long innerWindowID);
Methods from Deref<Target = nsIConsoleMessage>
pub fn coerce<T: nsIConsoleMessageCoerce>(&self) -> &T
[src]
Cast this nsIConsoleMessage
to one of its base interfaces.
pub const debug: i64
pub const info: i64
pub const warn: i64
pub const error: i64
pub unsafe fn GetLogLevel(&self, aLogLevel: *mut uint32_t) -> nsresult
[src]
/**
* The log level of this message.
*/
readonly attribute uint32_t logLevel;
pub unsafe fn GetTimeStamp(&self, aTimeStamp: *mut int64_t) -> nsresult
[src]
/**
* The time (in milliseconds from the Epoch) that the message instance
* was initialised.
* The timestamp is initialized as JS_now/1000 so that it can be
* compared to Date.now in Javascript.
*/
readonly attribute long long timeStamp;
pub unsafe fn GetMessageMoz(&self, aMessage: *mut *const int16_t) -> nsresult
[src]
[binaryname(MessageMoz)] readonly attribute wstring message;
pub unsafe fn ToString(&self, _retval: &mut nsACString) -> nsresult
[src]
AUTF8String toString ();
Trait Implementations
impl XpCom for nsIScriptError
[src]
const IID: nsIID
IID: nsIID = nsID(1676365118, 32153, 16720, [180, 243, 17, 49, 79, 157, 130, 169])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIScriptError
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIScriptError
[src]
type Target = nsIConsoleMessage
The resulting type after dereferencing.
fn deref(&self) -> &nsIConsoleMessage
[src]
Dereferences the value.