org.nervousync.exceptions.zip.ZipException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils-jdk11 Show documentation
Show all versions of utils-jdk11 Show documentation
Java utility collections, development by Nervousync Studio (NSYC)
/*
* Licensed to the Nervousync Studio (NSYC) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.nervousync.exceptions.zip;
import org.nervousync.commons.Globals;
import org.nervousync.exceptions.AbstractException;
/**
* Zip Exception
* ZIP异常
*
* @author Steven Wee [email protected]
* @version $Revision: 1.0.0 $ $Date: Nov 22, 2017 4:08:31 PM $
*/
public final class ZipException extends AbstractException {
/**
* Serial version UID
* 序列化UID
*/
private static final long serialVersionUID = -4262795571663295796L;
/**
* Constructor method for ZipException
* Create a new ZipException with the specified message.
* ZipException构造方法
* 使用特定的信息创建ZipException实例对象。
*
* @param msg The specified message
* 特定的信息
*/
// * @param errorCode Error identified code
// * 错误识别代码
public ZipException(final String msg) {
super(Globals.DEFAULT_VALUE_INT, "", msg);
}
/**
* Constructor method for ZipException
* Create a new ZipException with the specified message.
* ZipException构造方法
* 使用特定的信息创建ZipException实例对象。
*
* @param msg The specified message
* 特定的信息
* @param cause The root cause
* 异常信息对象实例
*/
// * @param errorCode Error identified code
// * 错误识别代码
public ZipException(final String msg, final Throwable cause) {
super(Globals.DEFAULT_VALUE_INT, "", msg, cause);
}
/**
* Constructor method for ZipException
* Create a new ZipException with the specified message.
* ZipException构造方法
* 使用特定的信息创建ZipException实例对象。
*
* @param errorCode Error identified code
* 错误识别代码
* @param messageKey Message identify key
* 信息识别键值
* @param collections given parameters of information formatter
* 用于资源信息格式化的参数
*/
public ZipException(final long errorCode, final String messageKey,
final Object... collections) {
super(errorCode, messageKey, collections);
}
/**
* Constructor method for ZipException
* Create a new ZipException with the specified message and root cause.
* ZipException构造方法
* 使用特定的信息以及异常信息对象实例创建ZipException实例对象。
*
* @param errorCode Error identified code
* 错误识别代码
* @param messageKey Message identify key
* 信息识别键值
* @param cause The root cause
* 异常信息对象实例
* @param collections given parameters of information formatter
* 用于资源信息格式化的参数
*/
public ZipException(final long errorCode, final String messageKey,
final Throwable cause, final Object... collections) {
super(errorCode, messageKey, cause, collections);
}
}