public class

CPUTemperatureException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.digi.android.system.cpu.exception.CPUTemperatureException

Class Overview

This exception indicates that an operation related to CPU Temperature access or configuration has failed.

The exception stores information about the kind of problem that caused the exception.

Summary

Constants
int READING_TEMP_FILE_ERROR Error reading from temperature file.
int TEMPERATURE_FILE_NOT_FOUND Temperature file could not be found.
int UNSPECIFIED_EXCEPTION Any exception that does not specify a specific issue.
int WRITING_TEMP_FILE_ERROR Error writing to temperature file.
long serialVersionUID
Fields
protected int channelIndex
protected int exceptionType
Public Constructors
CPUTemperatureException()
Constructs a generic CPUTemperatureException.
CPUTemperatureException(int exceptionType)
Constructs a CPUTemperatureException with the given cause.
CPUTemperatureException(int exceptionType, String message)
Constructs a CPUTemperatureException for the given exception cause and detailed exception message.
CPUTemperatureException(int exceptionType, Throwable throwable)
Constructs a CPUTemperatureException for the given exception cause and parent exception.
CPUTemperatureException(int exceptionType, String message, Throwable throwable)
Constructs a CPUTemperatureException for the given exception cause, detailed message and parent exception.
Public Methods
String getMessage()
int getType()
Retrieves the exception type.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final int READING_TEMP_FILE_ERROR

Error reading from temperature file.

Constant Value: 2 (0x00000002)

public static final int TEMPERATURE_FILE_NOT_FOUND

Temperature file could not be found.

Constant Value: 1 (0x00000001)

public static final int UNSPECIFIED_EXCEPTION

Any exception that does not specify a specific issue.

Constant Value: 0 (0x00000000)

public static final int WRITING_TEMP_FILE_ERROR

Error writing to temperature file.

Constant Value: 3 (0x00000003)

public static final long serialVersionUID

Constant Value: -1 (0xffffffffffffffff)

Fields

protected int channelIndex

protected int exceptionType

Public Constructors

public CPUTemperatureException ()

public CPUTemperatureException (int exceptionType)

Constructs a CPUTemperatureException with the given cause.

Parameters
exceptionType int: Type of exception.

public CPUTemperatureException (int exceptionType, String message)

Constructs a CPUTemperatureException for the given exception cause and detailed exception message.

Parameters
exceptionType int: Type of exception.
message String: Additional message for the exception.

public CPUTemperatureException (int exceptionType, Throwable throwable)

Constructs a CPUTemperatureException for the given exception cause and parent exception.

Parameters
exceptionType int: Type of exception.
throwable Throwable: Parent exception.

public CPUTemperatureException (int exceptionType, String message, Throwable throwable)

Constructs a CPUTemperatureException for the given exception cause, detailed message and parent exception.

Parameters
exceptionType int: Type of exception.
message String: Additional message for the exception.
throwable Throwable: Parent exception.

Public Methods

public String getMessage ()

Returns
String

public int getType ()

Retrieves the exception type. Will be UNSPECIFIED_EXCEPTION if not explicitly set.

Returns
int The exception type.