Skip to content

Instantly share code, notes, and snippets.

@tshevchuk
tshevchuk / Async_Request__c.object
Last active April 4, 2024 13:59
Utility class to enqueue Queueable Jobs.
Custom Object with the following fields:
* Apex_Class_Name__c - Text(255)
* Params__c - Long Text Area(131072)
* Status__c - Picklist (New, Enqueued, Error)
* Async_Apex_Job_Id__c - Text(18) (Unique Case Insensitive)
* Error_Message__c - Long Text Area(32768)
package com.company;
import com.sun.deploy.util.StringUtils;
import java.io.*;
import java.util.*;
public class QifToBeancount {
public static String convert(String qif) {
List<Transaction> transactions = new ArrayList<>();
@tshevchuk
tshevchuk / MYE.java
Last active November 23, 2016 16:41
C:\projects\LearnProgramming\java_certif\mock exams\examlab\src\com\tshevchuk\MYE.java Error:(15, 15) java: exception com.tshevchuk.Exception1 is never thrown in body of corresponding try statement
package com.tshevchuk;
class Exception1 extends Exception {
}
class Exception2 extends Exception {
}
public class MYE {