54 lines
1.4 KiB
Java
54 lines
1.4 KiB
Java
/*******************************************************************************
|
|
* Copyright (c) 2011 LWJGL Project and others
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.eclipse.org/legal/epl-v10.html, and under the terms of the
|
|
* BSD license, see http://lwjgl.org/license.php for details.
|
|
*
|
|
* Contributors:
|
|
* Jens von Pilgrim - initial implementation
|
|
******************************************************************************/
|
|
package org.lwjgl;
|
|
|
|
/**
|
|
* Exception thrown by library loader if operating system is not supported.
|
|
*
|
|
* @author Jens von Pilgrim (developer@jevopi.de)
|
|
* @since Jan 30, 2011
|
|
*/
|
|
public class OSNotSupportedException extends Exception {
|
|
|
|
String strOSName;
|
|
String strOSArch;
|
|
/**
|
|
* @param i_strOSName
|
|
* @param i_strOSArch
|
|
*/
|
|
public OSNotSupportedException(String i_strOSName, String i_strOSArch) {
|
|
super();
|
|
strOSName = i_strOSName;
|
|
strOSArch = i_strOSArch;
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
* @see java.lang.Throwable#getMessage()
|
|
*/
|
|
@Override
|
|
public String getMessage() {
|
|
return strOSName + " (" + strOSArch + ") not supported by LWJGL.";
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
* @see java.lang.Throwable#toString()
|
|
*/
|
|
@Override
|
|
public String toString() {
|
|
return getMessage();
|
|
}
|
|
|
|
|
|
}
|