⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 waddataformatexception.java

📁 一个基于PlaceLab的室内和室外的智能导航系统
💻 JAVA
字号:
package org.placelab.demo.mapview;public class WadDataFormatException extends Exception {	public static String MISSING_RESOURCE_ERROR =		"A needed resource was not found in the map wad";	public static String BAD_RESOURCE_ERROR =		"A needed resource in the map wad was corrupted";		private String referencedFrom;	private String badEntryLocation;	private String failCode;	private Throwable resourceProblem;	public WadDataFormatException(String referencedFrom,								  String badEntryLocation,								  String failCode,								  Throwable resourceProblem,								  String message)	{		super(message);		this.referencedFrom = referencedFrom;		this.badEntryLocation = badEntryLocation;		this.failCode = failCode;		this.resourceProblem = resourceProblem;	}	public WadDataFormatException(String referencedFrom,								  String badEntryLocation,								  String failCode,								  String message) {		this(referencedFrom, badEntryLocation,				failCode, null, message);	}	public WadDataFormatException(String badEntryLocation,								  String failCode,								  String message) {		this("format specification", badEntryLocation, failCode, null, message);	}	public WadDataFormatException(String badEntryLocation,								  String failCode,								  Throwable resourceProblem,								  String message) {		this("format specification", badEntryLocation, failCode, 				resourceProblem, message);	}			public String failCode() {		return failCode;	}	public String badEntryLocation() {		return badEntryLocation;	}	public String referencedFrom() {		return referencedFrom;	}		public String getMessage() {		return (super.getMessage() == null ? "" : super.getMessage() + " ")		+ "failCode: " + failCode() + " for resource: " +		badEntryLocation() + " referenced from: " + referencedFrom()		+ (resourceProblem == null ? "" : 		"with problem: " + resourceProblem.toString());	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -