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, @Nonnull String... messageArgs)
      Constructs a new instance with messageId and messageArgs.
      Parameters:
      messageId - message ID
      messageArgs - message Arguments
    • BizLogicAppException

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

      public BizLogicAppException(@RequireNonnull String messageId, @RequireNonnull PropertyFileUtil.Arg[] messageArgs)
      Constructs a new instance with fields, messageId and messageArgs.
      Parameters:
      messageId - message ID
      messageArgs - message Arguments
    • BizLogicAppException

      public BizLogicAppException(@Nullable AppExceptionFields fields, @RequireNonnull String messageId, @RequireNonnull PropertyFileUtil.Arg[] messageArgs)
      Constructs a new instance with fields, messageId and messageArgs.
      Parameters:
      fields - the fields related to the exeception
      messageId - message ID
      messageArgs - message Arguments
  • Method Details

    • getErrorFields

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

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

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