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

📄 notexpectedtypeexception.java

📁 jena2.5.4推理机系统的一种最基本实现 HP实验室出品
💻 JAVA
字号:
/*
 	(c) Copyright 2006 Hewlett-Packard Development Company, LP
 	All rights reserved.
 	$Id: NotExpectedTypeException.java,v 1.1 2007/05/10 14:01:51 chris-dollin Exp $
*/

package com.hp.hpl.jena.assembler.exceptions;

import com.hp.hpl.jena.rdf.model.Resource;

/**
    Exception to throw when some (dynamically loaded) class isn't of the
    required type.
    
    @author kers
*/
public class NotExpectedTypeException extends AssemblerException
    {
    protected final Class expectedType;
    protected final Class actualType;
    
    public NotExpectedTypeException( Resource root, Class expectedType, Class actualType )
        {
        super( root, "expected class " + expectedType.getName() + ", but had class " + actualType.getName() );
        this.expectedType = expectedType;
        this.actualType = actualType;
        }

    public Class getExpectedType()
        { return expectedType; }

    public Class getActualType()
        { return actualType; }
    }

⌨️ 快捷键说明

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