HyCodeYourTale
classpublicPriority 3

PrefabLoadException

com.hypixel.hytale.server.core.prefab.PrefabLoadException

extends RuntimeException

1

Methods

1

Public Methods

1

Fields

4

Constructors

Constructors

public
PrefabLoadException(PrefabLoadException.Type type)
public
PrefabLoadException(PrefabLoadException.Type type, String message)
public
PrefabLoadException(PrefabLoadException.Type type, String message, Throwable cause)
public
PrefabLoadException(PrefabLoadException.Type type, Throwable cause)

Methods

Public Methods (1)

public
PrefabLoadException.Type getType()

Fields

Private/Package Fields (1)

privatePrefabLoadException.Type type

Inheritance

Parent
Current
Interface
Child

Use mouse wheel to zoom, drag to pan. Click nodes to navigate.

Source Code

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

import javax.annotation.Nonnull;

public class PrefabLoadException extends RuntimeException {
   private PrefabLoadException.Type type;

   public PrefabLoadException(@Nonnull PrefabLoadException.Type type) {
      super(type.name());
      this.type = type;
   }

   public PrefabLoadException(PrefabLoadException.Type type, String message) {
      super(message);
      this.type = type;
   }

   public PrefabLoadException(PrefabLoadException.Type type, String message, Throwable cause) {
      super(message, cause);
      this.type = type;
   }

   public PrefabLoadException(PrefabLoadException.Type type, Throwable cause) {
      super(cause);
      this.type = type;
   }

   public PrefabLoadException.Type getType() {
      return this.type;
   }

   public static enum Type {
      ERROR,
      NOT_FOUND;

      private Type() {
      }
   }
}