24 package org.lightjason.agentspeak.error;
29 import javax.annotation.Nonnull;
30 import java.text.MessageFormat;
31 import java.util.logging.Logger;
62 m_context = p_context;
63 LOGGER.warning( MessageFormat.format(
"exception is thrown: {0}", m_context ) );
75 m_context = p_context;
76 LOGGER.warning( MessageFormat.format(
"{0}: {1}", p_message, m_context ) );
88 super( p_message, p_cause );
89 m_context = p_context;
90 LOGGER.warning( MessageFormat.format(
"{0}: {1}", p_message, m_context ) );
102 m_context = p_context;
103 LOGGER.warning( MessageFormat.format(
"{0}: {1}", p_cause.getMessage(),
m_context ) );
115 protected CRuntimeException(
final String p_message,
final Throwable p_cause,
final boolean p_enablesuppression,
116 final boolean p_writablestacktrace,
final IContext p_context
119 super( p_message, p_cause, p_enablesuppression, p_writablestacktrace );
120 m_context = p_context;
121 LOGGER.warning( MessageFormat.format(
"{0}: {1}", p_message, m_context ) );
CRuntimeException(final IContext p_context)
ctor
final IContext m_context
execution context
CRuntimeException( @Nonnull final Throwable p_cause, @Nonnull final IContext p_context)
ctor
exception with execution context
execution context with local data
CRuntimeException(final String p_message, final Throwable p_cause, final boolean p_enablesuppression, final boolean p_writablestacktrace, final IContext p_context)
ctor
static Logger logger(final Class<?> p_class)
returns a logger instance
static final transient long serialVersionUID
serial id
static final Logger LOGGER
logger
final IContext context()
returns the execution context
CRuntimeException( @Nonnull final String p_message, @Nonnull final IContext p_context)
ctor
class for any helper calls
CRuntimeException( @Nonnull final String p_message, @Nonnull final Throwable p_cause, @Nonnull final IContext p_context)
ctor