Class BizLogicAppException

All Implemented Interfaces:
Serializable

public class BizLogicAppException extends SingleAppException
Is used for buziness logic exceptions.

Messages are designated by messageId, which is defined in messages[_xxx].properties.

See Also:
  • Constructor Details

    • BizLogicAppException

      public BizLogicAppException(@Nonnull String messageId)
      Constructs a new instance with messageId.
      Parameters:
      messageId - message ID
    • BizLogicAppException

      public BizLogicAppException(@Nonnull String messageId, @Nonnull String... messageArgs)
      Constructs a new instance with messageId and messageArgs.
      Parameters:
      messageId - message ID
      messageArgs - message Arguments
    • BizLogicAppException

      public BizLogicAppException(@Nonnull AppExceptionFields fields, @Nonnull String messageId)
      Constructs a new instance with fields and messageId.
      Parameters:
      fields - the fields related to the exeception
      messageId - message ID
    • BizLogicAppException

      public BizLogicAppException(@Nonnull AppExceptionFields fields, @Nonnull String messageId, @Nonnull String... messageArgs)
      Constructs a new instance with fields, messageId and messageArgs.
      Parameters:
      fields - the fields related to the exeception
      messageId - message ID
      messageArgs - message Arguments
    • BizLogicAppException

      public BizLogicAppException(@Nonnull Locale locale, @Nonnull String messageId)
      Constructs a new instance with locale and messageId.
      Parameters:
      locale - locale
      messageId - message ID
    • BizLogicAppException

      public BizLogicAppException(@Nonnull Locale locale, @Nonnull String messageId, @Nonnull String... messageArgs)
      Constructs a new instance with locale, messageId and messageArgs.
      Parameters:
      locale - locale
      messageId - message ID
      messageArgs - message Arguments
    • BizLogicAppException

      public BizLogicAppException(@Nonnull Locale locale, @Nonnull AppExceptionFields fields, @Nonnull String messageId)
      Constructs a new instance with locale, fields and messageId.
      Parameters:
      locale - locale
      fields - the fields related to the exeception
      messageId - message ID
    • BizLogicAppException

      public BizLogicAppException(Locale locale, AppExceptionFields fields, String messageId, String... messageArgs)
      Constructs a new instance with locale, fields, messageId and messageArgs.
      Parameters:
      locale - locale
      fields - the fields related to the exeception
      messageId - message ID
      messageArgs - message Arguments
  • Method Details

    • getLocale

      @Nonnull public Locale getLocale()
      Gets locale.
      Returns:
      locale
    • getErrorFields

      @Nonnull public AppExceptionFields getErrorFields()
      Gets fields.
      Returns:
      fields
    • getMessageId

      @Nonnull public String getMessageId()
      Gets messageId.
      Returns:
      messageId
    • getMessageArgs

      @Nonnull public String[] getMessageArgs()
      Gets messageArgs.
      Returns:
      messageArgs