isSessionError property

bool get isSessionError

Returns true if this is a session error.

Implementation

bool get isSessionError => [
  ErrorCodeConstants.errSessionError,
  ErrorCodeConstants.errSessionNotActive,
  ErrorCodeConstants.errSessionJoinFailed,
  ErrorCodeConstants.errSessionLeaveFailed,
  ErrorCodeConstants.errTokenGenerationFailed,
  ErrorCodeConstants.errTokenVerificationFailed,
].contains(code);