com.jk.application.exceptions.ModuleException Maven / Gradle / Ivy
The newest version!
/*
* Copyright 2002-2016 Jalal Kiswani.
*
* Licensed 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 com.jk.application.exceptions;
import com.jk.application.api.Module;
import com.jk.exceptions.JKException;
/**
* The Class ModuleException.
*
* @author Jalal Kiswani
*/
public class ModuleException extends JKException {
/**
*
*/
private static final long serialVersionUID = 1L;
private final Module module;
/**
* Instantiates a new module exception.
*
* @param module
* the module
*/
public ModuleException(final Module module) {
super();
this.module = module;
}
/**
* Instantiates a new module exception.
*
* @param module
* the module
* @param message
* the message
*/
public ModuleException(final Module module, final String message) {
super(message);
this.module = module;
}
/**
* Instantiates a new module exception.
*
* @param moduele
* the moduele
* @param message
* the message
* @param cause
* the cause
*/
public ModuleException(final Module moduele, final String message, final Throwable cause) {
super(message, cause);
this.module = moduele;
}
/**
* Instantiates a new module exception.
*
* @param module
* the module
* @param cause
* the cause
*/
public ModuleException(final Module module, final Throwable cause) {
super(cause);
this.module = module;
}
/**
* Gets the module.
*
* @return the module
*/
public Module getModule() {
return this.module;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy