Class PSNException
Creates an exception to throw back to the Unity project. This can be created in the normal way or via a APIResult structure that has been returned from the Native plug-in
Namespace: Unity.PSN.PS5
Syntax
public class PSNException : Exception, ISerializable, _Exception
Constructors
PSNException()
Empty Exception
Declaration
public PSNException()
PSNException(String)
Message only exception
Declaration
public PSNException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | Message string |
PSNException(String, Exception)
Message plus inner exception
Declaration
public PSNException(string message, Exception inner)
Parameters
| Type | Name | Description |
|---|---|---|
| String | message | Message string |
| Exception | inner | Inner exception |
PSNException(APIResult)
Create exception with results returned from native method call
Declaration
public PSNException(APIResult apiResult)
Parameters
| Type | Name | Description |
|---|---|---|
| APIResult | apiResult | The results of an native api call. |
Properties
ExtendedMessage
Get the extended message for this exception. If the exception came from an error in the native plug-in it will include any Sce error code and the .cpp filename and line number. The Sce error code will be returned as a Hex character representation
Declaration
public string ExtendedMessage { get; }
Property Value
| Type | Description |
|---|---|
| String |
Filename
If from a native plug-in error the .cpp filename
Declaration
public string Filename { get; }
Property Value
| Type | Description |
|---|---|
| String |
LineNumber
If from a native plug-in error the .cpp linenumber
Declaration
public int LineNumber { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |
ResultType
The type of results, either success, warning or error
Declaration
public APIResultTypes ResultType { get; }
Property Value
| Type | Description |
|---|---|
| APIResultTypes |
SceErrorCode
If from a native plug-in error the Sce error code
Declaration
public int SceErrorCode { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |