All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.exception.BaseException Maven / Gradle / Ivy

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.exception;

import java.text.MessageFormat;

import com.enonic.xp.annotation.PublicApi;

@PublicApi
public abstract class BaseException
    extends RuntimeException
{
    public BaseException( final String message )
    {
        super( message );
    }

    public BaseException( final Throwable t, final String message )
    {
        super( message, t );
    }

    @Deprecated
    public BaseException( final String message, final Object... args )
    {
        this( null, message, args );
    }

    @Deprecated
    public BaseException( final Throwable cause, final String message, final Object... args )
    {
        super( message == null ? "" : MessageFormat.format( message, args ), cause );
    }

    public String getCode()
    {
        return "unknown";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy