com.elasticpath.domain.dataimport
Interface ImportFault

All Superinterfaces:
EpDomain, java.io.Serializable, Transient
All Known Implementing Classes:
ImportFaultImpl

public interface ImportFault
extends Transient

Represents an import fault.


Field Summary
static int ERROR
          The error level.
static int WARNING
          The warning level.
 
Method Summary
 java.lang.Object[] getArgs()
          Returns the arguments for fault code.
 java.lang.String getCode()
          Returns the fault code.
 int getLevel()
          Returns the level.
 java.lang.Exception getSource()
          Returns the fault source.
 boolean isError()
          Returns true if the fault is an error.
 boolean isWarning()
          Returns true if the fault is a warning.
 void setArgs(java.lang.Object[] args)
          Sets the arguments for fault code.
 void setCode(java.lang.String code)
          Sets the fault code.
 void setLevel(int level)
          Sets the level.
 void setSource(java.lang.Exception source)
          Sets the fault source.
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

ERROR

static final int ERROR
The error level.

See Also:
Constant Field Values

WARNING

static final int WARNING
The warning level.

See Also:
Constant Field Values
Method Detail

getArgs

java.lang.Object[] getArgs()
Returns the arguments for fault code.

Returns:
the arguments for fault code

getCode

java.lang.String getCode()
Returns the fault code.

Returns:
the fault code.

getLevel

int getLevel()
Returns the level.

Returns:
the level

getSource

java.lang.Exception getSource()
Returns the fault source.

Returns:
the fault source

isError

boolean isError()
Returns true if the fault is an error.

Returns:
true if the fault is an error

isWarning

boolean isWarning()
Returns true if the fault is a warning.

Returns:
true if the fault is a warning

setArgs

void setArgs(java.lang.Object[] args)
Sets the arguments for fault code.

Parameters:
args - the arguments

setCode

void setCode(java.lang.String code)
Sets the fault code.

Parameters:
code - the fault code to set

setLevel

void setLevel(int level)
Sets the level.

Parameters:
level - the level to set

setSource

void setSource(java.lang.Exception source)
Sets the fault source.

Parameters:
source - the fault source to set