org.jboss.dna.common.collection
Class Problem

java.lang.Object
  extended by org.jboss.dna.common.collection.Problem

@Immutable
public class Problem
extends java.lang.Object

Author:
Randall Hauch

Nested Class Summary
static class Problem.Status
           
 
Field Summary
static int DEFAULT_CODE
           
 
Constructor Summary
Problem(Problem.Status status, int code, I18n message, java.lang.Object... params)
           
Problem(Problem.Status status, int code, I18n message, java.lang.Object[] params, java.lang.String resource, java.lang.String location, java.lang.Throwable throwable)
           
 
Method Summary
 int getCode()
           
 java.lang.String getLocation()
           
 I18n getMessage()
           
 java.lang.String getMessageString()
          Get the message written in the current locale.
 java.lang.Object[] getParameters()
           
 java.lang.String getResource()
           
 Problem.Status getStatus()
           
 java.lang.Throwable getThrowable()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CODE

public static final int DEFAULT_CODE
See Also:
Constant Field Values
Constructor Detail

Problem

public Problem(Problem.Status status,
               int code,
               I18n message,
               java.lang.Object... params)

Problem

public Problem(Problem.Status status,
               int code,
               I18n message,
               java.lang.Object[] params,
               java.lang.String resource,
               java.lang.String location,
               java.lang.Throwable throwable)
Method Detail

getCode

public int getCode()
Returns:
code

getLocation

public java.lang.String getLocation()
Returns:
location

getMessageString

public java.lang.String getMessageString()
Get the message written in the current locale.

Returns:
the message

getMessage

public I18n getMessage()
Returns:
message

getParameters

public java.lang.Object[] getParameters()

getResource

public java.lang.String getResource()
Returns:
resource

getStatus

public Problem.Status getStatus()
Returns:
status

getThrowable

public java.lang.Throwable getThrowable()
Returns:
throwable


Copyright © 2008. All Rights Reserved.