ScriptException

Overview

ScriptException is the class for EcmaScript exceptions.

Location


 

Column  nonatomic

Specifies column number where exception happened.

@property (nonatomic) int32 Column

Event  nonatomic

Specifies event

@property (nonatomic) NSString *Event

exceptionName    (declared in ROException)

+ (nonnull NSString *) exceptionName

exceptionWithMessage:    (declared in ROException)

+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage:

fromServer  assign    (declared in ROException)

This flag is used to distinguish server side exceptions from client side ones. Set to YES for server side exceptions.

@property (assign) BOOL fromServer

initWithMessage:    (declared in ROException)

- (nullable instancetype) initWithMessage:(nonnull NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage:

initWithMessage::::::

- (InstanceType) initWithMessage:(NSString *)anExceptionMessage :(int32)aLine :(int32)aColumn :(NSString *)aEvent :(NSString *)aInnerStackTrace :(ScriptExceptionType)aType

Parameters:

  • anExceptionMessage:
  • aLine:
  • aColumn:
  • aEvent:
  • aInnerStackTrace:
  • aType:

initWithMessage:fromServer:    (declared in ROException)

- (nullable instancetype) initWithMessage:(nonnull NSString *)aExceptionMessage fromServer:(BOOL)aFromServer

Parameters:

  • aExceptionMessage:
  • aFromServer:

InnerStackTrace  nonatomic

Specifies inner stack trace.

@property (nonatomic) NSString *InnerStackTrace

Line  nonatomic

Specifies line number where exception happened.

@property (nonatomic) int32 Line

readFromMessage:withName:

This method is used for reading the ScriptException instance from a message packet.

- (void) readFromMessage:(ROMessage *)aMessage withName:(NSString *)aName

Parameters:

  • aMessage:
  • aName:

serverStackTrace  copy    (declared in ROException)

@property (copy) nonnull NSString *serverStackTrace

Type  nonatomic

@property (nonatomic) ScriptExceptionType Type

writeToMessage:withName:

Metod serializes ScriptException with given name into given message.

- (void) writeToMessage:(ROMessage *)aMessage withName:(NSString *)aName

Parameters:

  • aMessage:
  • aName:

 

Column  nonatomic

Specifies column number where exception happened.

@property (nonatomic) int32 Column

Event  nonatomic

Specifies event

@property (nonatomic) NSString *Event

fromServer  assign    (declared in ROException)

This flag is used to distinguish server side exceptions from client side ones. Set to YES for server side exceptions.

@property (assign) BOOL fromServer

InnerStackTrace  nonatomic

Specifies inner stack trace.

@property (nonatomic) NSString *InnerStackTrace

Line  nonatomic

Specifies line number where exception happened.

@property (nonatomic) int32 Line

serverStackTrace  copy    (declared in ROException)

@property (copy) nonnull NSString *serverStackTrace

Type  nonatomic

@property (nonatomic) ScriptExceptionType Type

 

exceptionName    (declared in ROException)

+ (nonnull NSString *) exceptionName

exceptionWithMessage:    (declared in ROException)

+ (nonnull ROException *) exceptionWithMessage:(nonnull NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage:

 

initWithMessage:    (declared in ROException)

- (nullable instancetype) initWithMessage:(nonnull NSString *)aExceptionMessage

Parameters:

  • aExceptionMessage:

initWithMessage::::::

- (InstanceType) initWithMessage:(NSString *)anExceptionMessage :(int32)aLine :(int32)aColumn :(NSString *)aEvent :(NSString *)aInnerStackTrace :(ScriptExceptionType)aType

Parameters:

  • anExceptionMessage:
  • aLine:
  • aColumn:
  • aEvent:
  • aInnerStackTrace:
  • aType:

initWithMessage:fromServer:    (declared in ROException)

- (nullable instancetype) initWithMessage:(nonnull NSString *)aExceptionMessage fromServer:(BOOL)aFromServer

Parameters:

  • aExceptionMessage:
  • aFromServer:

readFromMessage:withName:

This method is used for reading the ScriptException instance from a message packet.

- (void) readFromMessage:(ROMessage *)aMessage withName:(NSString *)aName

Parameters:

  • aMessage:
  • aName:

writeToMessage:withName:

Metod serializes ScriptException with given name into given message.

- (void) writeToMessage:(ROMessage *)aMessage withName:(NSString *)aName

Parameters:

  • aMessage:
  • aName: