WebKit Constants Reference

Framework
WebKit/WebKit.h
Declared in
WebKitErrors.h

Overview

This document describes the types and constants found in the WebKit.

Constants

WebKit Policy Errors

Policy errors that can occur.

typedef enum {
   WebKitErrorCannotShowMIMEType =                             100,
   WebKitErrorCannotShowURL =                                  101,
   WebKitErrorFrameLoadInterruptedByPolicyChange =             102,
};
Constants
WebKitErrorCannotShowMIMEType

Indicates that a MIME type is not supported.

Available in OS X v10.2 and later.

Declared in WebKitErrors.h.

WebKitErrorCannotShowURL

Indicates a failure in changing a location.

Available in OS X v10.2 and later.

Declared in WebKitErrors.h.

WebKitErrorFrameLoadInterruptedByPolicyChange

Indicates that a frame load was interrupted by a policy change.

Available in OS X v10.2 and later.

Declared in WebKitErrors.h.

Discussion

These errors occur when applying policy decisions.

WebKit Plug-in and Java Errors

Plug-in and Java errors that can occur.

typedef enum {
   WebKitErrorCannotFindPlugIn =                               200,
   WebKitErrorCannotLoadPlugIn =                               201,
   WebKitErrorJavaUnavailable =                                202,
};
Constants
WebKitErrorCannotFindPlugIn

Indicates a plug-in could not be found.

Available in OS X v10.3 and later.

Declared in WebKitErrors.h.

WebKitErrorCannotLoadPlugIn

Indicates a plug-in could not be loaded.

Available in OS X v10.3 and later.

Declared in WebKitErrors.h.

WebKitErrorJavaUnavailable

Indicates that Java is unavailable.

Available in OS X v10.2 and later.

Declared in WebKitErrors.h.

Discussion

These errors occur when loading pages containing plug-in or Java content.

Other WebKit Errors

Other WebKit errors that can occur.

extern NSString *WebKitErrorDomain;
extern NSString * const WebKitErrorMIMETypeKey;
extern NSString * const WebKitErrorPlugInNameKey;
extern NSString * const WebKitErrorPlugInPageURLStringKey;
Constants
WebKitErrorDomain

A string used by NSError to indicate that the error was originated by a WebKit class.

Available in OS X v10.2 and later.

Declared in WebKitErrors.h.

WebKitErrorMIMETypeKey

A dictionary key whose value is a string of the TYPE attribute.

Available in OS X v10.2 and later.

Declared in WebKitErrors.h.

WebKitErrorPlugInNameKey

A dictionary key whose value is a string containing the plug-in's name.

Available in OS X v10.2 and later.

Declared in WebKitErrors.h.

WebKitErrorPlugInPageURLStringKey

A dictionary key whose value is a URL string of the PLUGINSPAGE attribute.

Available in OS X v10.2 and later.

Declared in WebKitErrors.h.

Discussion

These errors occur while loading content.