• 고객센터
  • 교육
  • 매뉴얼
  • 데모
  • 제품소개
기술지원31
조회 수 : 1903
2010.06.14 (13:23:01)

    public void printResult(boolean isSuccess)
    {
        String msg = isSuccess ? null : "FAIL";
        printResult(isSuccess, msg);
    }

    public void printResult(boolean isSuccess, String strErrorMsg)
    {
        if(isSuccess)
        {
            if(m_protocol == 0)
                m_protocol = m_service.getContext().getResponseProtocol();
            if(m_response == null)
                m_response = m_service.getGauceResponse(m_protocol);
            try
            {
                m_response.commit(strErrorMsg);
            }
            catch(IOException ioe)
            {
                throw new RuntimeException("Can not commit Gauce transaction!rnt" + ioe.toString());
            }
        } else
        {
            printError("-75000", "[GAUCE--75000] " + strErrorMsg, "printResult");
        }
    }

    public void printResult(String sType, String sCode, String strErrorMsg)
    {
        printError(sType, sCode, strErrorMsg, null);
    }


private void printError(String strErrorCode, String strErrorMsg, String strMethod)
    {
        printError("App", strErrorCode, strErrorMsg, null);
    }

    private void printError(String strErrType, String strErrorCode, String strErrorMsg, String strMethod)
    {
        if(m_protocol == 0)
            m_protocol = m_service.getContext().getResponseProtocol();
        if(m_response == null)
            m_response = m_service.getGauceResponse(m_protocol);
        try
        {
            m_response.writeException(strErrType, strErrorCode, strErrorMsg);
            m_response.commit();
        }
        catch(IOException ioe)
        {
            throw new RuntimeException("Can not write ERROR message!rnt" + ioe.toString());
        }
    }


번호 제목 닉네임 조회 등록일
3545 [지급] 그리드 글꼴 관련 문의
김화영
1496 2010-06-25
3544 메뉴얼관련하여..;
우연정
1540 2010-06-21
3543 메뉴얼관련하여..;
기술지원40
1592 2010-06-22
3542 삼성카드 메뉴 관련
이민호
1471 2010-06-21
3541 삼성카드 메뉴 관련 첨부 파일
기술지원67
1648 2010-06-22
3540 x축이나 y축에 기준선을 그을 수 있는지요? 첨부 파일
삼성
1426 2010-06-21
3539 x축이나 y축에 기준선을 그을 수 있는지요? 첨부 파일
기술지원40
1535 2010-06-22
3538 Report Column Align 질문
김재곤
1378 2010-06-18
3537 Report Column Align 질문
기술지원40
1469 2010-06-22
3536 SubAvg 사용문의
최영수
1415 2010-06-18
3535 SubAvg 사용문의
기술지원40
1540 2010-06-22
3534 dataset dataid 관련
조성제
1476 2010-06-16
3533 dataset dataid 관련
기술지원97
1492 2010-06-17
3532 dataset dataid 관련
조성제
1508 2010-06-17
3531 dataset dataid 관련
기술지원40
1518 2010-06-22
3530 grid edit 속성관련 문의
지창용
1435 2010-06-15
3529 grid edit 속성관련 문의
기술지원97
2383 2010-06-15
3528 grid edit 속성관련 문의
지창용
1470 2010-06-15
3527 게시판 사용에 대해 안내말씀 드립니다.
기술지원40
1468 2010-06-16
Selected 대법원 첨부 파일
기술지원31
1903 2010-06-14
Tag List
XE Login