]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/Common/org/tianocore/common/exception/EdkException.java
0b7f5787a36028d39d0e583c993f4f52fd5cde67
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 package org
.tianocore
.common
.exception
;
21 public class EdkException
extends Exception
{
22 static final long serialVersionUID
= -8494188017252114029L;
23 private StackTraceElement
[] stackTrace
;
24 public static boolean isPrintStack
= false;
26 public EdkException(String message
) {
27 super("[EdkException]:" + message
);
30 public EdkException(String message
, boolean traceStack
) {
35 public EdkException(){
39 public EdkException(Exception e
, String message
){
40 super("[EdkException]:" + message
);
42 this.setStackTrace(e
.getStackTrace());
46 public static void setIsprintStack (boolean flag
){