// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.server.core.prefab;

import javax.annotation.Nonnull;

public class PrefabLoadException extends RuntimeException
{
    private Type type;
    
    public PrefabLoadException(@Nonnull final Type type) {
        super(type.name());
        this.type = type;
    }
    
    public PrefabLoadException(final Type type, final String message) {
        super(message);
        this.type = type;
    }
    
    public PrefabLoadException(final Type type, final String message, final Throwable cause) {
        super(message, cause);
        this.type = type;
    }
    
    public PrefabLoadException(final Type type, final Throwable cause) {
        super(cause);
        this.type = type;
    }
    
    public Type getType() {
        return this.type;
    }
    
    public enum Type
    {
        ERROR, 
        NOT_FOUND;
    }
}
