EMMA Coverage Report (generated Mon Mar 20 21:34:30 PST 2006)
[all classes][com.moesol.bindings.platform_sdk.windows_api]

COVERAGE SUMMARY FOR SOURCE FILE [Win32Exception.java]

nameclass, %method, %block, %line, %
Win32Exception.java100% (1/1)20%  (1/5)21%  (12/58)22%  (3.8/17)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Win32Exception100% (1/1)20%  (1/5)21%  (12/58)22%  (3.8/17)
Win32Exception (): void 0%   (0/1)0%   (0/9)0%   (0/4)
Win32Exception (String): void 0%   (0/1)0%   (0/10)0%   (0/4)
getLRESULT (): int 0%   (0/1)0%   (0/3)0%   (0/1)
getMessage (): String 0%   (0/1)0%   (0/24)0%   (0/7)
Win32Exception (int): void 100% (1/1)100% (12/12)100% (5/5)

1/*
2 * $Id: Win32Exception.java,v 1.1.1.5 2004/05/25 20:23:27 hastings Exp $
3 *
4 * (c) Copyright, Moebius Solutions, Inc., 2004
5 *
6 *                       All Rights Reserved
7 *
8 * This material may be reproduced by or for the U. S. Government
9 * pursuant to the copyright license under the clause at
10 * DFARS 252.227-7014 (OCT 2001).
11 */
12 
13package com.moesol.bindings.platform_sdk.windows_api;
14 
15/**
16 * @author robert
17 */
18public class Win32Exception extends RuntimeException {
19 
20    /**
21     * 
22     */
23    public Win32Exception() {
24        super();
25    }
26 
27    /**
28     * @param message
29     */
30    public Win32Exception(String message) {
31        super(message);
32    }
33        public Win32Exception(int lresult) {
34                m_lresult = lresult;
35        }
36        /* (non-Javadoc)
37         * @see java.lang.Throwable#getMessage()
38         */
39        public String getMessage() {
40                if (m_message != null) {
41                        return m_message;
42                }
43                
44                String msg = super.getMessage();
45                if (msg == null || msg.length() == 0) {
46                        msg = PlatformSDK.FormatMessage(m_lresult); 
47                }
48                
49                m_message = msg;
50                return m_message;
51        }
52        public int getLRESULT() {
53                return m_lresult;
54        }
55 
56        private int m_lresult = 0;
57        private String m_message = null;
58}

[all classes][com.moesol.bindings.platform_sdk.windows_api]
EMMA 2.0.5312 (C) Vladimir Roubtsov