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

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

public class PrefabSaveException extends RuntimeException
{
    private Type type;
    
    public PrefabSaveException(final Type type) {
        this.type = type;
    }
    
    public PrefabSaveException(final Type type, final String message) {
        super(message);
        this.type = type;
    }
    
    public PrefabSaveException(final Type type, final String message, final Throwable cause) {
        super(message, cause);
        this.type = type;
    }
    
    public PrefabSaveException(final Type type, final Throwable cause) {
        super(cause);
        this.type = type;
    }
    
    public Type getType() {
        return this.type;
    }
    
    public enum Type
    {
        ERROR, 
        ALREADY_EXISTS;
    }
}
