ROAESEnvelopeUnexpectedLengthException

Overview

Is thrown by ROAESEncryptionEnvelope when:

  • the received cyphertext length is not multiple of 16 bytes (as AES requires it to be)
  • the length of decrypted message does not match the expected length These errors may indicate the data corruption during the transfer or server side encryption error.

Location


 

exceptionName    (declared in ROException)

+ (nonnull NSString *) exceptionName

exceptionWithMessage: exceptionWithMessage:(nonnull NSString *) : nonnull ROException *    (declared in ROException)

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

Parameters:

  • aExceptionMessage:

exceptionWithMessage: exceptionWithMessage:(NSString *) : ROAESEnvelopeUnexpectedLengthException *

Returns a new exception instance with the given error message.

+ (ROAESEnvelopeUnexpectedLengthException *) exceptionWithMessage:(NSString *)aMessage

Parameters:

  • aMessage: Error message describing the error condition

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:fromServer:    (declared in ROException)

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

Parameters:

  • aExceptionMessage:
  • aFromServer:

serverStackTrace  copy    (declared in ROException)

@property (copy) nonnull NSString *serverStackTrace

 

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

serverStackTrace  copy    (declared in ROException)

@property (copy) nonnull NSString *serverStackTrace

 

exceptionName    (declared in ROException)

+ (nonnull NSString *) exceptionName

exceptionWithMessage: exceptionWithMessage:(nonnull NSString *) : nonnull ROException *    (declared in ROException)

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

Parameters:

  • aExceptionMessage:

exceptionWithMessage: exceptionWithMessage:(NSString *) : ROAESEnvelopeUnexpectedLengthException *

Returns a new exception instance with the given error message.

+ (ROAESEnvelopeUnexpectedLengthException *) exceptionWithMessage:(NSString *)aMessage

Parameters:

  • aMessage: Error message describing the error condition

 

initWithMessage:    (declared in ROException)

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

Parameters:

  • aExceptionMessage:

initWithMessage:fromServer:    (declared in ROException)

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

Parameters:

  • aExceptionMessage:
  • aFromServer: