DBLocalizedUserMessage

Objective-C

@interface DBLocalizedUserMessage : NSObject

Swift

class DBLocalizedUserMessage : NSObject

A wrapper objct that has a localized human-readable error message and the locale.

  • Localized, human-readable text.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *_Nonnull text;

    Swift

    var text: String { get }
  • DBLocalizedUserMessage full constructor.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithText:(nonnull NSString *)text
                                  locale:(nonnull NSString *)locale;

    Swift

    init(text: String, locale: String)

    Parameters

    text

    The localized, human-readable text.

    locale

    The IETF BCP 47 language tag of text locale.

    Return Value

    An initialized DBLocalizedUserMessage instance.

  • Description method.

    Declaration

    Objective-C

    - (nonnull NSString *)description;

    Swift

    func description() -> String

    Return Value

    A human-readable representation of the current DBLocalizedUserMessage object.