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

com.mobius.software.telco.protocols.diameter.exceptions.DiameterException Maven / Gradle / Ivy

There is a newer version: 10.0.0-17-java11
Show newest version
package com.mobius.software.telco.protocols.diameter.exceptions;

import java.util.List;

import com.mobius.software.telco.protocols.diameter.commands.DiameterMessage;
import com.mobius.software.telco.protocols.diameter.primitives.DiameterAvp;

/*
 * Mobius Software LTD, Open Source Cloud Communications
 * Copyright 2023, Mobius Software LTD and individual contributors
 * by the @authors tag.
 *
 * This program is free software: you can redistribute it and/or modify
 * under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see 
 */

/**
*
* @author yulian oifa
*
*/

public class DiameterException extends Exception 
{
	private static final long serialVersionUID = 1L;

	private Long vendorID;
	private Long errorCode;
	private Long applicationID;
	private Integer commandCode;
	private DiameterMessage partialMessage;
	private List failedAVPs;
	
	public DiameterException(String message, Long vendorID, Long errorCode, ListfailedAVPs) 
	{
		super(message);
		this.vendorID = vendorID;
		this.errorCode = errorCode;
		this.failedAVPs = failedAVPs;
	}

	public Long getVendorID()
	{
		return vendorID;
	}

	public Long getErrorCode()
	{
		return errorCode;
	}
	
	public List getFailedAVPs()
	{
		return failedAVPs;
	}

	public DiameterMessage getPartialMessage()
	{
		return partialMessage;
	}

	public void setPartialMessage(DiameterMessage partialMessage)
	{
		this.partialMessage = partialMessage;
	}

	public Long getApplicationID()
	{
		return applicationID;
	}

	public void setApplicationID(Long applicationID)
	{
		this.applicationID = applicationID;
	}

	public Integer getCommandCode()
	{
		return commandCode;
	}

	public void setCommandCode(Integer commandCode)
	{
		this.commandCode = commandCode;
	}		
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy