com.cybelia.sandra.ibu
Class ReturnCodeHelper

java.lang.Object
  extended by com.cybelia.sandra.ibu.ReturnCodeHelper

public class ReturnCodeHelper
extends Object

Les codes de retours sont de la forme: 0 - OK 1 - Erreur de parsing uniquement 2 - Erreur d'injector uniquement 3 - Erreur de parsing et d'injector ...

Author:
thimel

Field Summary
static int GENERAL_ERROR_CODE
           
static int INJECTOR_ERROR_CODE
           
static int PARSER_ERROR_CODE
           
 
Constructor Summary
ReturnCodeHelper()
           
 
Method Summary
static int getReturnCode(boolean hasParserError, boolean hasInjectorError)
           
static boolean hasGeneralError(int returnCode)
           
static boolean hasInjectorError(int returnCode)
           
static boolean hasParserError(int returnCode)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARSER_ERROR_CODE

public static final int PARSER_ERROR_CODE
See Also:
Constant Field Values

INJECTOR_ERROR_CODE

public static final int INJECTOR_ERROR_CODE
See Also:
Constant Field Values

GENERAL_ERROR_CODE

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

ReturnCodeHelper

public ReturnCodeHelper()
Method Detail

getReturnCode

public static int getReturnCode(boolean hasParserError,
                                boolean hasInjectorError)

hasParserError

public static boolean hasParserError(int returnCode)

hasInjectorError

public static boolean hasInjectorError(int returnCode)

hasGeneralError

public static boolean hasGeneralError(int returnCode)


Copyright © 2008-2012 Cybelia. All Rights Reserved.