public class Messages extends Object
Constructor and Description |
---|
Messages() |
Modifier and Type | Method and Description |
---|---|
void |
addDebug(String message,
boolean recordStackTrace) |
void |
addDebug(String message,
Throwable exception) |
void |
addMessage(Message message) |
void |
addWarning(String message,
boolean recordStackTrace) |
void |
addWarning(String message,
Throwable exception) |
static void |
clearCurrent()
Removes the thread-local instance if one exists.
|
static Messages |
getCurrent() |
static Messages |
getCurrent(boolean create) |
Message |
getMessage(int index) |
int |
getMessageCount() |
static boolean |
isEnabled() |
static void |
pop() |
static void |
push() |
static void |
setCurrent(Messages messages) |
static void |
setEnabled(boolean enabled) |
String |
toString() |
public static boolean isEnabled()
public static void setEnabled(boolean enabled)
public static final Messages getCurrent(boolean create)
public static final Messages getCurrent()
public static final void setCurrent(Messages messages)
public static final void clearCurrent()
public static final void push()
public static final void pop()
public void addMessage(Message message)
public int getMessageCount()
public Message getMessage(int index)
public void addWarning(String message, boolean recordStackTrace)
public void addDebug(String message, boolean recordStackTrace)
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.